def dispatch(self, message, source = None):
msgtype = "<STR_LIT>"<EOL>try:<EOL><INDENT>if type(message[<NUM_LIT:0>]) == str:<EOL><INDENT>address = message[<NUM_LIT:0>]<EOL>self.callbacks[address](message)<EOL><DEDENT>elif type(message[<NUM_LIT:0>]) == list:<EOL><INDENT>for msg in message:<EOL><INDENT>self.dispatch(msg)<EOL><DEDENT><DEDENT><DEDENT>except KeyError as key:<EOL><INDENT>print('<STR_LIT>' % (address, key, message))<EOL>pprint.pprint(message)<EOL><DEDENT>except IndexError as e:<EOL><INDENT>print('<STR_LIT>' % (e, message))<EOL>pass<EOL><DEDENT>except None as e:<EOL><INDENT>print("<STR_LIT>", address, "<STR_LIT>", e)<EOL><DEDENT>return<EOL>
Sends decoded OSC data to an appropriate calback