add pre-commit hook for python