SocketIO

I have successfully implement a SocketIO server on the Linux side using Python along Flask and Flask-SocketIO.

I need to exchange data between the server and the MCU, which should act as a client.
How can this be accomplished?

Or any suggestion about a more convenient way to exchange data between the MCU and a Python script?
A way I am thinking to do this, is writing environmental variables but honestly it sounds a bit silly...

My goal is to create a GUI embedded on YUN so I can interact with the sketch in real-time.

Just use the bridge

On the Python side

On the Arduino side

Much simpler. Thanks!