
Python-plumbum provides shell-like syntax and handy shortcuts for writing shell script one-liners in Python using shell combinators. It supports local and remote command execution (over SSH), local and remote file-system paths, easy working-directory and environment manipulation and a programmatic Command-Line Interface (CLI) application toolkit.
This is the Python 2 version.