def __getattr__(self, attr):
        """ 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 attr not in self.__dict__:
           try:
                return getattr(self.__getattribute__('_story').namespace, attr)
           except AttributeError:
                pass
        return self.__getattribute__(attr)
dataset/ETHPy150Open hltbra/pyhistorian/pyhistorian/scenario.py/Scenario.__getattr__/original