add chat.py
Merge pull request #1 from dhaisheng/dev

add chat.py