Update main.py

Ninja edit to previous version. I screwed it up when merging...