:return: list of text representing an attribute of parent or each element at element path,
             or a list of dicts representing all the attributes parsed from each element

def get_elements_attributes(parent_to_parse, element_path=None, attrib_name=None):
    """
    :return: list of text representing an attribute of parent or each element at element path,
             or a list of dicts representing all the attributes parsed from each element
    """

    attrs = _get_elements_property(parent_to_parse, element_path, 'attrib')

    if not attrib_name:
        return attrs

    return [attr[attrib_name] for attr in attrs if attrib_name in attr]