Make python-mode-hook that enables flymake-mode more robust.

This ensures compatibility with mo-git-blame