def send(self, data):
        """send the given python data to the receiving party"""
        sdata = pickle.dumps(data)
        sdata = struct.pack('I', len(sdata)) + sdata
        self._wlock.acquire()
        try:
            os.write(self._fd_w, sdata)
        finally:
            self._wlock.release()
send the given python data to the receiving party
recipes/Python/576520_Multithreaded_MultiplexerDemultiplexer_allow/recipe-576520.py