with open("BestFit.pkl", 'rb') as f: mags = pkl.load(f)