Event management in Python.