replace os.system -> subprocess.Popen