Refactoring and testing the lean integrators and benchmarking with
Python