get rid of Popen, use run_cmd