Pycurl helper classes