Modified for Python 3

urllib got split into urllib.request, etc.