urllib2 is now urlib3 for Python 3.3. Change the import to handle both scenarios