file.seek(0) seems to be doing the trick. I’ll test more intensely tomorrow.
file.seek(0)
Thanks Karrie!