Writing then reading in-memory bytes (BytesIO) gives a blank result Writing then reading in-memory bytes (BytesIO) gives a blank result python python