Update main.py

Cleaned up code