sed by captured_stdout/stdin/stderr
    that temporarily replaces the sys stream *stream_name* with a StringIO.r