def __setattr__(self, attr, value):
        """ first look at the scenario instance,
            and if it does not find the attr, it looks to story's namespace.
            it is useful to ``before_all`` and ``before_each`` story's methods
        """
        if self.__dict__ not in attr:
            if getattr(self, '_story', None) and getattr(self._story, 'namespace', None):
                setattr(self._story.namespace, attr, value)
                return
        object.__setattr__(self, attr, value)
dataset/ETHPy150Open hltbra/pyhistorian/pyhistorian/scenario.py/Scenario.__setattr__/swapped operands of `not in`