old_contents: import os
  
  man = []
  other = []
  
  try:
      data = open('sketch.txt')
  
      for each_line in data:
          try:
              (role, line_spoken) = each_line.split(':', 1)
              line_spoken = line_spoken.strip()
              if role == 'Man':
                  man.append(line_spoken)
              elif role == 'Other Man':
                  other.append(line_spoken)
          except ValueError:
              pass
  
      data.close()
  except IOError:
      print('The datafile is missing!')
  try:
      man_data = open('man_data.txt', 'w')
      other_data = open('other_data.txt', 'w')
      print(man, file=man_data)
      print(other, file=other_data)
      man_data.close()
      other_data.close()
  except IOError:
      print('File error!')
  
new_contents: import os
  from nester import print_lol
  
  man = []
  other = []
  
  try:
      data = open('sketch.txt')
  
      for each_line in data:
          try:
              (role, line_spoken) = each_line.split(':', 1)
              line_spoken = line_spoken.strip()
              if role == 'Man':
                  man.append(line_spoken)
              elif role == 'Other Man':
                  other.append(line_spoken)
          except ValueError:
              pass
  
      data.close()
  
  except IOError:
      print('The datafile is missing!')
  
  try:
      with open("man_data.txt", 'w') as man_file, open('other_data.txt', 'w') as other_file:
          print_lol(man, fh=man_file)
          print_lol(other, fh=other_file)
  
  except IOError as err:
      print('File error: ' + str(err))
  
subject: Update on file