convert from pickle to result csv