Make create_display event handling work with both Python 3 (no apply) and Python 2