Merge important code modifs from master to python branch
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.
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.