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