My personal hacked up version of the PyCmd project, integrating a few additional features and tweaks.