import pickle


def LoadModel(filname):
    """
    Load a model using pickle

    Parameters
    ----------
    filname : str
        model file name.

    Returns
    -------
    model : dict
        Output of BuildModel methode, a dict with:
            -"model" an sklearn trained random forest classifier.
            -"features" the list of the model features.

    """
    model = pickle.load(open(filname, 'rb'))
    return model