docs: def save(self):
          """save the current session
          override, if session was saved earlier"""
          if self.path:
              self._saveState(self.path)
          else:
              self.saveAs()