python bindings rework, part 3 (final)