Improved Python code style

Removed unused imports, shortened functions

Refs #9345
Merge branch 'feature/9345_indirect_jumpfit_python_algorithm' into develop