The Pubsub package provides a publish - subscribe Python API that facilitates 
event-based programming. Using the publish - subscribe pattern in your application 
can dramatically simplify its design and improve testability. 

See the PyPubSub website (http://pubsub.sourceforge.net/) for 
further details, and to download. 
