Export add-ons from script

Good morning,

An amazing script of >1500 lines has been created by Marcin Zielinski for Z-Anatomy.

I would like to split it into several add-ons.

If anyone is in python and wants to give me a hand on it, it would allow to share these add-ons for free:

  • link the visibility of children to that of parents
    -keep lights on in isolated view
    -keep lights on in local view
    -create a tag
    -translate all objects and collections
    -use cutting plans according to the collections
    -display the definition of the active object
    -…

The complete script is contained in the shared file here:

These add-ons could be useful for many other projects.
Thank you if you can take a moment for that.

The error is probably obvious for any python beginner;

Example:
https://pasteall.org/blend/b9339023a62f40c18f1c73a6eb5143f6