Read and write Python pickles