def addservice(service):
    global servicelist
    i = 0
    found = -1
    for s in servicelist:
        if s._group == service._group:
            found = i
        elif (0 >= found):
            # insert service into list next to existing group
            i = found + 1
            break
        i += 1
    servicelist.insert(i, service)
dataset/ETHPy150Open coreemu/core/daemon/core/service.py/addservice/swapped operands of `>=`