set max and min in python