Fix Python bindings.
Simplify test script.
Add step-wise LMA.