convert git-wtf to python
refactor git-wtf for readability