Finding Maximum And Minimum In Python