Chat application in python