Exporting multiple random protocol buffer batches to a directory