def METHOD_NAME(self, transmit_callback):
    assert self.is_transmitting
    self.is_transmitting = False
    warnings.warn("transmit_callback() is back")
    self.is_transmitting = False
    #if transmit_callback != None:
        #transmit_callback(status)
    if len(self.packet_queue) > 0:
        self._send_packet_from_queue()
    if transmit_callback != None:
        transmit_callback(True) # transmission was ok