Shiny for Python is written in async.io, which is quite different from how it works in R. The mental model for the Shiny app author is actually quite similar to that of a Reactive developer. Each user has their own copy of their own session but they all run on the same thread.