I am trying to figure out an efficient way of writing a header row into a xls file from my Oracle table instead of having to do this every time, because some of my results are 50-70 columns across.

```
headings1 = ['Column 1', 'Column 2', etc]  
rowx = 0
for colx, value in enumerate(headings1):
    sheet1.write(rowx,colx,value)

```

My current code will only write the rows of data starting at row 2 because I have been manually creating an Excel file template that have all sheet names and header rows predefined, but it is a lot of work to create the template and I want to get rid of that part and have it automatically write Row 1 as my headers.

```
Import CX_Oracle
Import xlwt
Import xlutils.copy
Import xlrd    

SQL = "SELECT Column1, Column2, etc from TABLE" 
cursor = con.cursor()
cursor.execute(SQL)
wb_read = xlrd.open_workbook('Template.xls',formatting_info=True)
wb_read.Visible = 1
wb_write = copy(wb_read)
sheet0 = wb_write.get_sheet(0)

for i, row in enumerate(cursor):
    for j, col in enumerate(row):
        sheet1.write(i+1,j,col)  #Starts pasting the data at row 2
book.save('Output.xls')

```

The current file includes 5-7 sheets that I have to write data to in the same workbook as well as 5-7 cursors being used, this is an example of the first cursor.