Fixed app.py = functional