'receive a Python object as a message using pickle to serialize
Parameters
flags : int
Any valid recv flag.
Returns
obj : Python object
The Python object that arrives as a message.'

def recv_pyobj(self, flags=0):

    msg = self.recv(flags)
    return self._deserialize(msg, pickle.loads)
