os.execlp('python3', 'python3', '-c',
    """
import os
import sys
print("3. Python version: ", sys.version)
print("4. Process id: ", os.getpid())
"""
    )
Change Python execution version from within Python script