Iterate through words of a file in Python,words = open('myfile').read().split()