def close(self): """Close the ssh connection""" ftp = self.client.open_sftp() ftp.remove(self.script_filename) ftp.close() self.client.close()