Add common interface for transformations.
Simplify python bindings.
Reformatting.
Don't reset optimizer after each update.