OK so it isn't quite enough like a file to work here, fair enough. Since `cStringIO` is in the standard library I don't know if it needs to be imported within this function, it could just be a top level import.