Switched from os.popen to subprocess.Popen