Use subprocess.Popen instead of os.system