def __setattr__(self, key, value):
        """setattr aliased to setitem, with strict"""
        if key in iter(self.keys()):
            self[key] = value
        else:
            raise AttributeError(key)
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Metadata.__setattr__/original