for t in text:
        output.write(t)
        yield str(output.getvalue())

        if isinstance(output, StringIO):