8.0 commission payment migration hbto

Restructuring Module & Making it to comply with Pylint & Flake8