import gzip
import pickle


def gz_pickle_load(filename):
    """Loads a compressed object from disk
    """
    fp = gzip.GzipFile(filename, 'rb')
    object = pickle.load(fp)
    fp.close()

    return object