PyMOTW: asynchat

The asynchat module builds on asyncore to make it easier to implement protocols based on passing messages back and forth between server and client.

Read more at pymotw.com: asynchat