def net_msg_handle(self, msg):
        if ['UIDRESP'] in msg[0:7]:
            _, uid = msg.split(' ', 1)
            if self.Node == None:
                self.Node = Node(uid, self.host, self.port, self)
            self.finger.add(self.Node)
            
        if msg[0:6] in ['UIDREQ']:
            resp = 'UIDRESP ' + self.finger.self.uid
            self.send(resp)
            
        if msg[0:4] in ['PING']:
            self.send('PONG')
        
        if msg[0:4] in ['PONG']:
            pass
            
        if self.Node == None:
            self.send('UIDREQ')
            return
        else:
            self.Node.seen()
            
        if msg[0:9] in ['REQ_LEVEL']:
            _, level = msg.split(' ', 1)
            node = self.finger.get_node_from_level(int(level), self.Node.uid)
            if node:
                resp = 'RESP_LEVEL ' + str(node.uid) + " " + self.host + ":" + str(self.port)
                self.send(resp)
                
        if msg[0:10] in ['RESP_LEVEL']:
            _, uid, addr = msg.split(' ', 1)
            Connect(self.finger, self.set_handler, addr)
            
        self.set_handler.handle_msg(self, msg)
dataset/ETHPy150Open c00w/gevent-dht/gevent_dht/protocol.py/Protocol.net_msg_handle/swapped operands of `in`