You may try:
writeFile = open("/gendermodelDebug.csv", "w") #'w' instead of 'wb'
if you use 'wb'
binary output then row
has no meaning.
....
Remember that:
after you finished your work, you need to close the opened file using:
writeFile.close()