Update extractGitBranches.py

fixes #2