Fix urllib for Python 3