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