Update main.py

I added the changing sync stuff.