'Remove an attribute from the object, and report back.'

def rm_attr(self, obj, attr):

    if obj.attributes.has(attr):
        val = obj.attributes.has(attr)
        obj.attributes.remove(attr)
        return ("\nDeleted    attribute    '%s'    (=    %s)    from    %s." % (attr, val, obj.name))
    else:
        return ("\n%s    has    no    attribute    '%s'." % (obj.name, attr))
