replaced subprocess+ssh with PTYWrapper ;-)
added test script for issue #57