Fix urllib imports (differs for Python3).