Write your templates in Python.