There are still back-calls to PHP for some of the sub-steps. These needs some larger refactoring to be moved to Python.