Python script to export SQL Query result in an excel spreadsheet