pylatex добавить пакет

# After importing Package from pylatex:
doc.packages.append(Package('tikz'))
Powerful Penguin