BUG: Fix bug in _run where it uses python_shell boolean in Popen but the cmd is not formatted to handle shell (single string) vs. non-shell (list of strings)
STY: Added indices for str.format to correct for pylint
Merge pull request #16329 from basepi/bp-16311

Backport #16311 to 2014.7