code: def register_processor(self, processor):
          
          if not callable(processor):
              raise ValueError('Processor %s is not callable.' % processor.__class__.__name__)
          else:
              self.processors.append(processor)
docs: Register a new processor.
  
          Note that processors are called in the order that they are registered.