Drills down into tree using the keys

def _deep_value(*args, **kwargs):
    """ Drills down into tree using the keys
    """
    node, keys = args[0], args[1:]
    for key in keys:
        node = node.get(key, {})
    default = kwargs.get('default', {})
    if node in ({}, [], None):
        node = default
    return node