def register_callback(self):
        """Register callback that we will have to wait for"""

        cid = str(self.__cid)
        self.__cid += 1
        event = queue.Queue()
        self.__callbacks[cid] = event
        return cid, event
def register_callback ( self ) : cid = str ( self . __cid ) self . __cid += 1 event = queue . Queue ( ) self . __callbacks [ cid ] = event return cid , event
Register callback that we will have to wait for