def parse_file, to make "for line in parse_file(open('blah','r')):" possible