def before_feature(context, feature):
    if 'expensive_setup' in feature.tags:
        context.excute_steps(
            """
            Given some setup condition that only runs once per feature
              And some other run once setup action
        """
            )
Running certain steps once before a scenario outline - Python Behave