data = DRIVE.files().export(fileId=files[0]['id'], mimeType=DST_MIMETYPE
    ).execute()
if data:
    with open(fn, 'wb') as f:
        f.write(data)
print('DONE')
How do you save a Google Sheets file as CSV from Python 3 (or 2)?