HH-43331 use subprocess.check_output instead of os.popen