import gzip
import pickle


def load_func(fn):
    """
    Load one thing saved with pickle and gzip
    Input:
        fn - filename to load from
    Output:
        one_thing - thing loaded from file
    """
    with gzip.open(fn) as f:
        one_thing = pickle.load(f, encoding='latin1')
    return one_thing