Adding chat.py
Update chat.py