def handle_packet(self, packet):
if self.packet_callback:<EOL><INDENT>self.packet_callback(packet)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>', packet)<EOL><DEDENT>
Process incoming packet dict and optionally call callback.