And yes, I tried both BytesIO and StringIO.