Ok, now I think I understand. I was not aware it was possible to embed multiple CPython instances into one process.Using multiprocessing is fine. That starts up multiple interpreters in *different* processes. Yang is using a non-Python program that embeds the CPython interpreter and starts up multiple copies of it in the same process.