* made a class out of it.
* some fixes for th ttye support, but is not clear that we really need it.
* API is more like python-sh. replacement is inminent :)