def rename(self, name):
    if (not getattr(self._modifier, 'isDone', True)):
        return self._modifier.rename(self, name)
    mod = om.MDGModifier()
    mod.renameNode(self._mobject, name)
    mod.doIt()
def rename(self, name):
    if (not getattr(self._modifier, 'isDone', True)):
        return self._modifier.rename(self, name)
    mod = om.MDGModifier()
    mod.renameNode(self._mobject, name)
    mod.doIt()