def __getitem__(self, key): if key in self.subkeys: return PyCorpus.__getitem__(self, key) raise KeyError()