app.py Routing restructure