Object-oriented event handling API for python.