code: def edit(self, **kwargs):
          
          part = '/library/sections/%s?%s' % (self.key, urlencode(kwargs))
          self._server.query(part, method=self._server._session.put)
  
          # Reload this way since the self.key dont have a full path, but is simply a id.
          for s in self._server.library.sections():
              if s.key == self.key:
                  return s
docs: Edit a library (Note: agent is required). See :class:`~plexapi.library.Library` for example usage.
  
              Parameters:
                  kwargs (dict): Dict of settings to edit.