revise local_cmd, subprocess.popen needs a list.