I have a python function that gets name of a person and then opens a csv file. if name of person does not exist in the file, it writes a rocord as shown below:
name_of_pe