how to write a tuple of tuples to a csv file using python,writer.writerow(A)