Fixed a couple obvious flaws in examples/chat.py