bug fixs: only run tools on '.py' files, fixed syntax error in git_tools.py