replace pycurl by httplib