I guess I always assumed things like cherrypy used something simpler than spawning a whole new interpreter instance (what it actually does). TIL. Though hacking import hooks looks like a fun alternative even if it would most likely be an unsafe nightmare.