def _set_attributes(self):
        """Override loading of the "variables" attribute from text to dict."""
        for k, v in self._data.items():
            if k == 'variables' and isinstance(v, six.string_types):
                v = json.loads(v)

            try:
                setattr(self, k, v)
            except __HOLE__:
                # In this case we already defined the attribute on the class
                pass
dataset/ETHPy150Open openstack/python-mistralclient/mistralclient/api/v2/environments.py/Environment._set_attributes