Merge important code modifs from master to python branch

Merged Loic Huder requested to merge master into python-port

Recent work in master involved the correction of the algorithm and the implementation of several convenience methods that must be present in the python branch.

Merge request reports