<filename>sagan/utils/utils.py<gh_stars>1-10
import pickle

def load_pkl(filename):
    with open(filename, 'rb') as file:
        return pickle.load(file, encoding='latin1')

def save_pkl(obj, filename):
    with open(filename, 'wb') as file:
        pickle.dump(obj, file, protocol=pickle.HIGHEST_PROTOCOL)