This reminds me of this great talk from Temporal about how they built their Python SDK by creating a distributed deterministic event loop on top of asyncio[1]
[1] https://www.youtube.com/watch?v=wEbUzMYlAAI