removed ssh_session and moved to use subprocess