Check out this tutorial demonstrating Python interoperability in Swift.
This function is intended to set the Python version before any references to the global PythonInterface
called Python
-
it cannot be used to switch Python versions dynamically.