open('blah.txt', 'w').write(
    """We are the knights who say Ni!
We are the knights who say Ni!
We are the knights who say Ni!
"""
    )
Is it pythonic to use generators to write header and body of a file?