Application.py: cleanup