.py and template