changing to pickle instead of shelve