Fix urlopen in Python3