def net_send_object(sock, obj):
 data = pickle.dumps(obj, pickle.HIGHEST_PROTOCOL)
 sock.sendall(('%10d' % len(data)))
 sock.sendall(data)

def net_send_object ( sock , obj ) : data = pickle . dumps ( obj , pickle . HIGHEST_PROTOCOL ) sock . sendall ( ( '%10d' % len ( data ) ) ) sock . sendall ( data )
send python object over network .