changed urllib2 to urllib3 and ported from httplib to httplib2

now changing to python 3.4 syntax.