change main.py.tpl file