Updated the main.py file to support options for posting data