Update main.py

add if __name__ == '__main__' to code