Update eventutil.py

fixing syntax