persistence through pickle, accuracy calculation