def _is_list_of_dict(l):
    return isinstance(l, list) and all(_is_dict(e) for e in l)