for ii, inner_list in enumerate(main_list):
    for jj, some_tuple in enumerate(inner_list):
        if ii == 0:
            new_list.append([some_tuple])
else:
    new_list[jj].append(some_tuple)
return new_list
Python: transform a list of lists of tuples