Fix imports, sys.maxsize