Writing a selection of events from ESD pytables.h5 to new h5 file working