under https://coban.tuxfamily.org/index.php?page=installation#linux
one can find python code for some calculations tool for electrical installations. in the tar file there are some *.py codes.
It is french and not maintained anymore. I am not the one to understand codes.. how worthy is it?