get error when exporting query results to excel file:
Unsupported type <type ‘dict’> in write()