def build_attributes(attributes, obj):
    """Build the Attribute list for the given object."""
    for attr in attributes:
        yield {'name': attr[0], 'object': getattr(attr[2], attr[0]),
            'defining_class': attr[2]}
