Patching the standard output from the sys module is just what it seems like, but you have to concentrate on several gotchas: There isn’t an easy solution to flush the stream in Python 2, as the print assertion doesn’t let for it by alone. You might want to get yourself https://printserver26048.mywikiparty.com/1104018/an_unbiased_view_of_hpe_printer