converted to using $PYTHON_VERSION_MAJOR and $PYTHON_VERSION_MINOR