A chat program in Python 2.7