Python3 support: Fix numeric to event names