<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(grp, out_path):
 """ 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 """

    with open(out_path, "w") as f:
        for x in grp:
            f.write(str(x) + "\n")