<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _set_attribute(self, name, value):
 """Make sure namespace gets updated when setting attributes."""

        setattr(self, name, value)
        self.namespace.update({name: getattr(self, name)})