def StreamWrite ( stream , * obj ) : stream . Write ( base64 . encodestring ( pickle . dumps ( obj ) ) )
passing encode in a function python 3
Writes Python object to Skype application stream .
def StreamWrite(stream, *obj):
    """Writes Python object to Skype application stream."""
    stream.Write(base64.encodestring(pickle.dumps(obj)))