sys.maxint is not available in python 3 so use maxsize for a large int