Cleanup.
Separate the client and server.
Start replacing the old SocketServer server with on based on asyncore.