data = urllib.request.urlopen('http://www.google.com').read(20000)
data = data.split('\n')
for line in data:
    pass
In Python, given a URL to a text file, what is the simplest way to read the contents of the text file?