ok, as of date 2025/2/18, after a exhaustive peruse of internet and more specifically the python api file on Py_Finalize. I am able to find the reason, Py_Finalize and its variant are not able to fully stop or terminate all python related processes and setting. In best pratice so far is to only use py_initialize and py_finalize once per system run (process) and avoid multiple calls to the two functions.