I have a method x
which I can add to the driver namespace like this:
bpy.app.driver_namespace["x"] = x
but the namespace is reset everytime I restart Blender, which then messes up my drivers. Is there a way to permanently add it to the namespace or auto-execute this script when starting Blender?