Quick follow-up, with pyergo/pyxsb, python is using xsb as a shared library. I don't know how Janus works, but potentially it uses python as a shared lib, so the other way around.
The end goal, in my case, is to have python and ergo/xsb-prolog able to call each other within the same process.
It seems a bit more natural to have python launch xsb, but in principle either way would work.
So, if it turns out it is easier to have XSB + Janus init some top-level python code with that code able to call Ergo as well as that code base able to be called back from Janus that could work.
Trying to mix both with python-exe initing xsb-shared-lib which inits python-shared-lib seems like it could be problematic, but I haven't fully thought it through.
-- Marc