io.BytesIO doesn't like mmap