Read/Write pre-generated events file

Write pre-generated events using gen_events.py using the same test_setup.py. Can be read with time_insert.py with new --input|-i option.