PyMOTW: commands

The commands module contains utility functions for working with shell command output under Unix.

Read more at pymotw.com: commands