That's not a text, it's a binary data. As you are using python2 it doesn't fully distinguish bytes
from str
so you should care about this.
The other side should get this bytes exactly as rsa outputs them so you can just write them into your connection or file (presuming you are talking binary to them).