MAINT: using sys.maxint, thanks @adamrp