Chat server implementation using python