code: def _option(self):
          
          class Options(object):
              def __getitem__(_self, name):
                  return self.getOption(name)
  
              def __setitem__(_self, name, value):
                  self.setOption(name, value)
  
          return Options()
docs: Get/Set an option.