Investigate PEP 587 for better Python interpreter support post-3.8
Python seems to be gaining more control over the environment from the interpreter initialization phase. We should investigate using the new APIs for our Python logic.
https://www.python.org/dev/peps/pep-0587/
Cc: @utkarsh.ayachit