Clean up application.py