def lookup(dic, key, *keys):
    if keys:
        return lookup(dic.get(key, {}), keys[0], *keys[1:])
    return dic.get(key)
A generic dictionary access helper.
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/utils.py/lookup