def get_loaded_rules(rules_paths):
 for path in rules_paths:
  if (path.name != '__init__.py'):
   rule = Rule.from_path(path)
   if rule.is_enabled:
    (yield rule)

def get_loaded_rules ( rules_paths ) : for path in rules_paths : if ( path . name != '__init__.py' ) : rule = Rule . from_path ( path ) if rule . is_enabled : ( yield rule )
yields all available rules .