def equal_attributes(obj1, obj2, attributes):
    """Compare two objects attributes"""
    if not attributes:
        return False
    temp1, temp2 = object(), object()
    for attr in attributes:
        if callable(attr):
            if attr(obj1) != attr(obj2):
                return False
        elif getattr(obj1, attr, temp1) != getattr(obj2, attr, temp2):
            return False
    return True
