old_contents: # Console outputs a person list
  
  import os
  import csv
  
  with open('tmp/person_list_input.csv') as csvfile:
      csvreader = csv.reader(csvfile)
      for row in csvreader:
          print """  - role: {}
      name: {}""".format(row[0], row[1])
  
  
new_contents: # Console outputs a person list
  
  import os
  import csv
  
  with open('tmp/person_list_input.csv') as csvfile:
      csvreader = csv.reader(csvfile)
      for row in csvreader:
          stream = open('tmp/person_list_output.yml', 'a')
          stream.write( """  - role: {}\n    name: {}\n""".format(row[0], row[1])
          )
          stream.close()
  
  
subject: Make person list generator output to file