This is not valid syntax in Python 3. Just use `max([A.cols, B.cols, c.cols])`.