fixed app.py basic flask errors