mark custom filter as auto_load from python macro

I have a macro to group a multiblock dataset into several nodes for simplified access. This macro relies on a set of python plugins loaded at the begin of the macro using LoadPlugin and works fine.

However, I cannot load state files recreating visualizations that used this macro because the python plugins are not loaded automatically. Activating the auto_load settings in the plugin manager solves this issue but I have to do this manually for each plugin. And all others with whom I share these macros and plugins have to do so, too.

Is there a way to set the auto_load flag automatically, e.g. from the macro when it is first executed and loads the plugins?
Or do I have to go via the PV_PLUGIN_PATH approach as described in the PluginHowto?

Autoload is a Qt GUI specific settings, so not afaik.

I have similar request, maybe a Macro to load all plugins may help, this is my code:
(you may change the path based on your paraview dir structure)

# -*- coding: utf-8 -*-
## @file
import os
import shutil
from paraview.simple import *

plm = servermanager.vtkSMProxyManager.GetProxyManager().GetPluginManager()    
info = plm.GetLocalInformation()

dir_cwd = os.getcwd()
dir_root = dir_cwd
if not os.path.exists(os.path.join(dir_cwd, "paraview.exe")):
    print("invalid directory")

#load programmables
dir_prg = os.path.join(dir_root, "paraview-5.7", "plugins", "programmables")

prg_list = []
if os.path.exists(dir_prg):
    for f in os.listdir(dir_prg):
        if os.path.splitext(f)[1] == ".py":

for f in prg_list:
    LoadPlugin(os.path.join(dir_prg, f), remote=False, ns=globals())

prg_name_list = [os.path.splitext(f)[0] for f in prg_list]
for cc in range(0, info.GetNumberOfPlugins()):
    p_name = info.GetPluginName(cc)
    if p_name in prg_name_list:
        info.SetAutoLoad(cc, True)
        print("Auto load plugin: {}".format(p_name))