def __getitem__(self, item):

        if item in list(self.pval_dict.keys()):
            return self.pval_dict[item]
        else:
            return None
overload __getitem__ to return a value from the pval_dict
dataset/ETHPy150Open modflowpy/flopy/flopy/modflow/mfpval.py/ModflowPval.__getitem__