Only these items are allowed in the dictionary

def allowed(self, method, _dict, allow):
        """
        Only these items are allowed in the dictionary
        """
        for key in _dict.keys():
            if key not in allow:
                raise LunrError("'%s' is not an argument for method '%s'"
                                % (key, method))