wait for shell command `p` evoked by  subprocess.popen to complete,p.wait()