shellac
is an extension of the standard python [cmd](library http://docs.python.org/2/library/cmd.html), which aims to offer an alternative approach to nesting commands.
to get started with shellac, please read the wiki
For low-level methods, please see the API documentation