import gzip
import pickle


def load_pickle_gz(filename):
    """Loads a compressed object from disk
    """
    with gzip.GzipFile(filename, 'rb') as fin:
        obj = pickle.load(fin)

    return obj