def _get_prefix_length(number1, number2, bits):
    for i in range(bits):
        if number1 >> i == number2 >> i:
            return bits - i
    return 0
@summary: Get all lights, get new lights, or get a specific light as                  determined by the resource object.
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/ipaddr.py/_get_prefix_length--crossover with--dataset/ETHPy150Open allanbunch/beautifulhue/beautifulhue/api/_light.py/Light.get