fix client.py bug

to_unicode() -> to_text()