Update main.py

a bit more cleanup!