def save_model(model, fname):
    """Save a Model to a file.

    Parameters
    ----------
    model : model instance
        Model to be saved.
    fname : str
        Name of file for saved Model.

    """
    with open(fname, 'w') as fout:
        model.dump(fout)
