<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_attr_value(self, key, attr, value):
 """ set the value of a given attribute for a given key """

        idx = self._keys[key]
        self._attrs[attr][idx].set(value)