import pickle with open('food.pickle', 'rb') as f: data = pickle.load(f) pass