def _generateEventID():
 global _nextEventID
 _nextEventID += 1
 return _nextEventID

def _generateEventID ( ) : global _nextEventID _nextEventID += 1 return _nextEventID
generates an event id this is mostly so that an event can later be removed .