Python 3 depreciated sys.maxint

use sys.maxsize if AttributeError