Update lib/eventgensamples.py

Force commit after every event to account for data where the sourcetype changes with every event