How to write a tuple of tuples to a CSV file using Python,writer.writerow(A)