Update template.py.