Replaces urllib2 with pycurl