How Does Python Max Function Work