Note that Python3 does not read the html code as a string but as a bytearray, so you need to convert it to one with decode.
import urllib.request
fp = urllib.request.urlopen("http://www.python.org")
mybytes = fp.read()
mystr = mybytes.decode("utf8")
fp.close()
print(mystr)