def handle_data(self, data): self.pdu_queue.put({ 'direction': 'inbound', 'pdu': unpack_pdu(data), }) return SmscServer.handle_data(self, data)