Update client.py

Updated file for new Tornado code.