Python-level event wrapping.