.csv") as f:     csv_data = [{k: v for k, v in row.items()} for row in csv.DictReader(f, skipinitialspace=True)]      name_array = []     for name in [row["Name"] for row in csv_data]:         name_array.append(name)     name_set = set(name_array)      for name in name_set:         timetable["Timetable"].append({"Name": name, "Date": {}})      for row in csv_data:         for entry in timetable["Timetable"]:             if entry["Name"] == row["Name"]:                 entry["Date"][row["Date"]] = {}                 entry["Date"][row["Date"]][row["Subject"]] = {                     "Start": row["Start"],                     "Finish": row["Finish"]                 }  