Changing StringIO to BytesIO