I don't think put_attributes will ever return non-true.  Or maybe it always returns None?  either way, I think it'll indicate issues by exception.