Cannot run python-osc module on OpenSesame based on Python 3.6
I'm new using OpenSesame (I'm running on Windows 10) and I'm trying to run a simple python code (example code from the python-osc module) (https://github.com/attwad/python-osc) which is just sending random values through Open Sound Control to the localhost in the port 5005. When I'm running the experiment, the code doesn't works but if I run the same code in the Python 3.7 IDLE it works. The readme file of the module says that work on Python 3.5+ so it shouldn't be a problem. Also I checked that my Windows Firewall wasn't blocking OpenSesame and I have the same problem.
Any ideas of what's happening?
I'm attaching the code I'm using. (I cannot attact it as .py so I put it as a .txt file, sorry for that!)
Thanks for your help!
PS. Sorry if this post isn't in the right place, please move it if it's necessary.