Attached is the part of the code where I write the data.
Code:
writer.writerow(datim + [button1]+ [row['cruise']] + [row['crunum']]+ [sitecode]+ [SeriesCode]+ [deploynum]+ [DeploymentCode]+ [ctd]+ [blat] + [blon]+[deploymenteklog]+ [Deploymentcom1 + str(deploynum)]),