Some of these imports are not used. The rest of them only import string to use the string.atoi function. But string.atoi(s) on a string input is identical to just int(s). See the docs: "deprecated since 2.0".