fix some stream/pyout/pyerr