added some comments to the code and some better error checking
added some comments to the code and some better error checking

p/pycurl-archived,pycurl/pycurl,pycurl/pycurl,p/pycurl-archived,pycurl/pycurl,p/pycurl-archived