def fix_constants(constants):
    """Given a dict of constant parameters this function returns a fixer
    function that updates the json to include these constants"""
    def fix_const_updater(json):
        json.update(constants)
        return json
    return fix_const_updater