refactoring process_pickles into separate generation, examination, and plotting utilities