Hot-reloading in Python can be slow since the entire server process must be restarted from scratch. The Tach package speeds this up by building a dependency map. Evan Doyle explained how it works with an interesting example.
https://www.gauge.sh/blog/how-to-build-hot-module-replacement-in-python