From the python interface, it would be usefull to add custom hooks and functions at several places in the code.