fix urlopen in python3