Update application.py