fixing application.py