`Popen` already knows the exit code of commands that it runs. It would be reasonable to have run_command return the exit code as well as the process's output. This has the side benefit of lining up with the API for [SSHClient](https://github.com/RedHatQE/cfme_tests/blob/master/utils/ssh.py)'s run_command method.