Hello, are you aware that https://jeltef.github.io/PyLaTeX/current/examples/tikzdraw.html exists? Seems like you could save yourself and them some work by sharing code.