Bug fix in app.py to import sys