import cmath as c import pickle as pkl with open(r"set_20000.pkl", "rb") as input_file: set_dic = pkl.load(input_file) part_set = (set_dic["x_part"], set_dic["y_part"], set_dic["x"], set_dic["y"]) x_part, y_part, x ,y = part_set set_raw = (x,y) pkl.dump( part_set, open("set_raw_{0}.pkl".format(len(x)) , "wb" ) )