http://pymotw.com/2/asynchat/
http://pymotw.com/2/asyncore/