`with open(os.devnull, "w") as null, contextlib.redirect_stderr(null)` is not working, since pipe read will occupy the pipe