Remove python 2.7 syntax from get_repo_version.py
refs #4026