WIP: Progress on parsing samples.pk and modifying it, need to fix the final stage of outputting modified sample.pk