Update main.py

more modifications