HTTPError is in urllib.error in Python 3, not in http.error