Small application.py changes