Update main.py

Ready to test as a command line function