See TwistedMatrix or..

 * Twisted Introduction: http://djmitche.github.com/twisted-intro/