Chat Application in Python