Format changed for Max function from python2 to python3