I believe you should use `powerline.lib.shell.run_cmd` here. It is already installed.