code: def block(self, signals=None, isBlocked=True):
          
          if signals:
              try:
                  if isinstance(signals, basestring):
                      signals = [signals]
              except NameError:
                  if isinstance(signals, str):
                      signals = [signals]
  
          signals = signals or self.keys()
  
          for signal in signals:
              if signal not in self:
                  raise RuntimeError("Could not find signal matching %s" % signal)
              self[signal].block(isBlocked)
docs: Sets the block on any provided signals, or to all signals
  
          :param signals: defaults to all signals. Accepts either a single string or a list of strings
          :param isBlocked: the state to set the signal to