added template.py