python pre-commit hook
Change script version and refactoring