code: def iter_lines(filename):
      
      with open(filename, 'rt') as idfile:
          for line in idfile:
              screen_name = line.strip()
              if len(screen_name) > 0:
                  yield screen_name.split()[0]
docs: Iterate over screen names in a file, one per line.