code: def _param(self):
          
          class Parameters(object):
              def __getitem__(_self, name):
                  return self.getParameter(name)
  
              def __setitem__(_self, name, value):
                  if isinstance(value, (float, int, basestring)):
                      self.getParameter(name).set(value)
                  else:
                      self.getParameter(name).setValues(value)
  
              def __iter__(_self):
                  return self.getParameters()
  
          return Parameters()
docs: Get/Set a parameter.