fix text_transfer for python and ruby