I\'m currently running flask-socketio inside to a thread. On a specific socketio event, I want to change the state of a global object in main thread i.e, perform a function whic