Triggering callback from within Python

It took me some time to find this solution, which I think is the best for now. This is really cool, exact what I want, thanks!
However, If I use uwsgi method to launch this server, eg. waitress, it would raise

RuntimeError: You need to use the eventlet server. See the Deployment section of the documentation for more information.

I think this is caused by multiple access threads. Does it means one can only use a single thread with GIL to realize this ‘change’ function? It doesn’t seems to be a problem for now buy I’m curious how to solve that.