updated routes.py and app.yaml