Chat client and server using Python sockets API