app.py template file update