Updated gitversion.py to work with python 3.
Merge pull request #5 from ixjlyons/python3-fix

Updated gitversion.py to work with python 3.