def set_model_parameters(model, new_params):
    """Adjusts the dictionary of model-level parameters / attributes.

    :param model: An Open ABM supported model / environment instance
    :param new_params: A python dictionary of parameters / attributes replacing old parameter values. 

    :return: A model instance

    """
    if isinstance(new_params, dict):
        for key in new_params.keys():
            if key in vars(model).keys():
                vars(model)[key] = new_params[key]
    else:
        print('new_params must be in the form of a Python dictionary!')
    return model
