make sure python is initialized before accessing pyversion, now that it is a global and not a function