def is_list_of_dict_like(obj, attr=('keys', 'items')):
    """test if object is a list only containing dict like items """
    try:
        if len(obj) == 0:
            return False
        return all([is_dict_like(i, attr) for i in obj])
    except Exception:
        return False
def is_list_of_dict_like ( obj , attr = ( 'keys' , 'items' ) ) : try : if len ( obj ) == 0 : return False return all ( [ is_dict_like ( i , attr ) for i in obj ] ) except Exception : return False
test if object is a list only containing dict like items