To sum up (code is minimal to reproduce error) I open a tcp socket with jython (2.7.2). (I could not use others implementations of the Python language).