quest.saveAsExcel not generating excel file

At the end of my quest staircase I:
save_data()
mywin.close()
core.quit()

Where save_data() is:
def save_data():
savingScreen = visual.TextStim(
win=mywin,
autoLog=False,
text=“Saving to file…”
)
savingScreen.setAutoDraw(True)
savingScreen.draw()
mywin.flip()
## create the datafile
quest.saveAsExcel(fileName=expInfo[‘TaskFile’]+’.csv’,sheetName = expInfo[‘Participant’]+"_"+expInfo[‘Date’])
print ‘got here’

The task runs fine, and I get the ‘got here’ text printed to the output window. No error messages, but no excel file, either.

This is true in both windowsXP running standalone psychopy 1.85.6 and windows7 running standalone psychopy 1.90.2.

Perhaps it was because I ommitted, “quest.Next()” inside my staircase loop.
Having added that line, I do now generate the desired excel file.