A simple event system, written in Python