from flask import Response

@app.route('/get-file')
def get_file():
    results = generate_file_data()
generator = (cell for row in results for cell in row)
In python using Flask, how can I write out an object for download?