Use subprocess.Popen.wait; os.waitpid throws OSError in Windows