subprocess.run replacement with tee(1)-like output
