pycurl wrapper