suppres the error, "AttributeError: '_io.StringIO' object has no attribute 'buffer'"