Updated main.py to work on pythonanywhere.com