def METHOD_NAME(to_save):
    # save to csv if filename provided
    if csv_filename:
        with open(csv_filename, 'a') as file:
            writer = csv.writer(file)
            writer.writerow(to_save)