def save(self):
        tmp_path = self.path + '.tmp'
        with open(tmp_path, 'w') as f:
            f.write(json.dumps(self.body_labels.items()))
        os.rename(tmp_path, self.path)
def loginSsh(self):
        self._setupLog()
        self._debugLog("Login in as "+self._loginUser.username)

        try:
            self._loginUser.sendPassword()
            return True
        except Exception as e:
            self.forceCloseCliConnectionTo()
            raise Exception('Exception ('+str(e)+') '+'Expected CLI response: "Password:"' + "\n Got: \n" + self._lastExpect())