Use httplib instead of Python requests.
Use temporary and unique file names for running processes.
Update TODOs and change paths.
GETs shouldn't have a body per the HTTP spec.
asssert should come ahead.
More useful diagnostics
Update TODOs