also worth checking your call signature here and variable names - what is files
? it doesn’t seem to exist!
as @alcampopiano rightly infers zip_file
is a Media object.
zip_file = io.BytesIO(zipfile.get_bytes())
is probably closer to what you want