I wonder if namedtuples are respected by the template engine, so you could name this in the view and then here call it like score.value, score.max.