Thanks for the nice message Karl.
I started learning and coding in python to modify this script originally written by Poco (whom I would like to thank by the way!).
I didn't know anything about Python at the time, and had only coded small objects in GDL until now.
There have been many iterations on this script, and it has been heavily reviewed by Poco who proposed many corrections to make the code cleaner.
The script part allowing to do the calculations is in itself quite short.
What makes it heavy are the comments as you pointed out, but especially the interface with Tkinter.
I was impressed by the possibilities of the python-archicad connection, even if it is still quite limited.
We can easily imagine functions coded by experienced users but used by users not initiated to code (thanks to the GUI), which makes the thing very interesting
I think that I will continue my tutorials on the archicad-python so that anybody can code this kind of script.