python 3 port of TeamCitySharp