urllib2.URLError not available in Python 3. changed to URLError per imports above.