code: def save_session(self, outfolder, override=None):
          
          filename = '%s_%s' % (self.protname.upper(), "_".join(
              [self.hetid, self.plcomplex.chain, self.plcomplex.position]))
          if override is not None:
              filename = override
          cmd.save("/".join([outfolder, "%s.pse" % filename]))
docs: Saves a PyMOL session file.