feat(python): big cleanup

Pavel Kuzmenko requested to merge kpn/refactoring into epic/refactoring

Merge request reports