pylatex добавить пакет
# After importing Package from pylatex:
doc.packages.append(Package('tikz'))
Powerful Penguin
# After importing Package from pylatex:
doc.packages.append(Package('tikz'))