replace pycurl with urllib2 to fix SSL problems