def METHOD_NAME(self, row, ip):
    rtes = self.routes.get(ip)
    if rtes is None:
        rtes = []
        self.routes[ip] = rtes
    if ip in rtes:
        return
    for i, inner_ip in enumerate(rtes):
        if inner_ip is None:
            self.send_trace(ip, i+1)
    self.send_trace(ip, len(rtes)+1)  # and one more for the road