Fix typo in template.py