lib/python_version_utils.pm

get_system_python_version

returns a string with the system's current default python version, for example 'python311'

get_available_python_versions

returns an array of strings with all the available python versions in the repository, we can get the latest version with parameter defined

get_python3_binary

given a python package version, e.g. python311, returns the executable name python3.11 when the package is 'python3', return the system default one (eg python3.6 for SLE15.4)

remove_installed_pythons

remove all the installed available python versions