Popen.wait() added in control.py