I would like to convert this curl command to something that I can use in Python for an existing script.
curl -u 7898678:X -H \'Content-Type: application/jso
Take a look at pycurl http://pycurl.sourceforge.net/