moved some functionality to a shared module
rewrote nssh in python