Use BytesIO instead of CrazyBuffer