Replacing Popen.wait() by call().