Python scripts for crating templates