I think if you somehow tested to see if the socket is open on startup before opening it, that problem could be worked around.
Basically if it's not open it opens it, if it's open it does nothing.
I'm not sure about doing this in Python but there should be some way to ping a port on your local machine via localhost, and then just a simple if/then/else operation could solve that.
Also, I'm not sure about the Python library that Construct 0.91 ships with, but I think it may lack the sockets library. So that would have to be included with the game (I think) for sockets to work. Not 100% sure on this, and the fact that I just spent five hours working on a native 1280x800 monitor, in 640x480 safe mode, really hasn't helped my mental condition.