a basic chat server using python sockets