Light "events" for Python functions.