changed subprocess.Popen to subprocess.call