def pop(self, key, *pa, **kwa):
        index = kwa.get('index', -1)
        try:
            val = super(modict, self).pop(key)
        except KeyError:
            if pa:
                return pa[0]
            else:
                raise

        return val[index]
If key exists remove and return the indexed element of the key element
dataset/ETHPy150Open ioflo/ioflo/ioflo/aid/odicting.py/modict.pop