clamping floating numbers in python?,"max(min(my_value, max_value), min_value)"