Repaired app.py (lost in last commit)