Custom blueprint nodes defined in python need to be refreshed every time I reopen the editor

I have two python files of interest here:
“dapi” and “init_unreal”

“dapi” contains code for custom blueprint nodes (like “Launch UI” in the screenshot). “init_unreal” only contains two statements : “import unreal” and “import dapi”. The init file seems to be running on editor startup like I would expect, but the editor utility widget blueprint still fails to compile. Using “Refresh all nodes” will work and then any custom nodes will work again, but that should only be a temporary workaround.

Is there something obvious I’m missing?