A simple chat client in python