class ShellHandler:

    def __init__(self, host, user, psw):
        self.ssh = paramiko.SSHClient()
self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
self.ssh.connect(host, username=user, password=psw, port=22)
channel = self.ssh.invoke_shell()
self.stdin = channel.makefile('wb')
self.stdout = channel.makefile('r')

def __del__(self):
    self.ssh.close()

def execute(self, cmd):
    pass
Implement an interactive shell over ssh in Python using Paramiko?