Returns either the specified version from settings or platform.python_version()

def get_python_version(self) -> str:
        """ Returns either the specified version from settings or platform.python_version()
        """
        if self.python_version is None:
            python_version = platform.python_version()
        else:
            python_version = self.python_version

        return python_version