replace requests with pycurl