with zipfile.ZipFile(zipped_file, 'w') as zip:
    for i, file in enumerate(files):
        file.seek(0)
zip.writestr('{}.csv'.format(i), file.read())
zipped_file.seek(0)
Sending multiple .CSV files to .ZIP without storing to disk in Python