code: def dispatch(self, packet):
          
          for handler in self.handlers:
              if handler['filter'](packet):
                  # Call the handler method with its associated
                  # name and the packet which passed its filter check
                  handler['callback'](handler['name'], packet)
docs: dispatch: XBee data dict -> None
  
          When called, dispatch checks the given packet against each
          registered callback method and calls each callback whose filter
          function returns true.