Switched to pycurl. Caching password so it is asked only once.
Removed spurious print
Dump the job ID as a json string