I get a \'AttributeError: \'tuple\' object has no attribute \'value\' when trying to iterate over a query and write the results to an excel sheet. When I print out "pay