Update main.py to support posting raw data