code: def write(grp, out_path):
      
      with open(out_path, "w") as f:
          for x in grp:
              f.write(str(x) + "\n")
docs: Write a GRP to a text file.
  
      Args:
          grp (list): GRP object to write to new-line delimited text file
          out_path (string): output path
  
      Returns:
          None