Transfer python objects via socket