I am running a program to read csv files and save data in lists to later be re-written in a csv file with a different layout. Here is the code:
def read_csv(f