We need BytesIO for MARC data, StringIO for JSON; import both and use the actual name.