Out of list *l* return all elements that have *key=val*
    This comes in handy when you are working with aggregated/bucketed queries

def _get_by(key, val, l):
    """
    Out of list *l* return all elements that have *key=val*
    This comes in handy when you are working with aggregated/bucketed queries
    """
    return [x for x in l if _check_value_recursively(key, val, x)]