file = 'holygrail.txt'
header = '#You have been defeated!\n'
with open(file, w) as fh:
    fh.write(header)
for i in range(3):
    fh.write('We are the knights who say Ni!\n')
Is it pythonic to use generators to write header and body of a file?