<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_csv_line(mol, csv_writer, options):
 """ 	Parse mol object and write a line to the csv file 	"""


    # set variables
    status_field = options.status_field

    # elements for writing will be stored in the line list
    line = []

    # ID
    id = mol.GetProp('id')
    if id is not None:
        line.append(id)
    else:
        line.append('n/a')

    # status
    line.append(mol.GetProp(status_field))

    # query labels
    queryList = mol.properties.keys()
    for queryLabel in queryList:
        line.append(mol.properties[queryLabel])

    # write line
    csv_writer.writerow(line)