fixed python3 related bug in git_version