def unpickle(file_name):
    with open(file_name, "r") as pkl_file:
        data = pickle.load(pkl_file)
    return data
retrieve a pickled python object from a file
dataset/ETHPy150Open CGATOxford/cgat/CGAT/IOTools.py/unpickle