most pythonic way to fit a variable to a range?,"result = min(max_value, max(min_value, result))"