Modified smart_meter_upload.py to remove infinite loop