Changes the name of this executable and the reference to it in the
        parent module.

def update_name(self, name):
        """Changes the name of this executable and the reference to it in the
        parent module."""
        if name != self.name:
            self.parent.executables[name] = self
            del self.parent.executables[self.name]
            self.name = name