start to integrate subprocess.popen