fix pickle file open mode