simplify Python/logEvent.py