urllib2 is now urllib3 for Python 3.3. Change the import to handle both modules