import urllib.request, urllib.parse, urllib.error
with urllib.request.urlopen('http://python.org/') as response:
    pass
Python 3: AttributeError: 'module' object has no attribute '__path__' using urllib in terminal