setattr doesn't return anything.  This looks odd, but I guess `setattr(..); return` is also odd.  Same for delattr.