def __setitem__(self, key, value):
        if key in iter(self.keys()):
            dict.__setitem__(self, key, value)
        else:
            raise KeyError(key)
strict static key enforcement
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Metadata.__setitem__