Get rid of `string.atoi`

The function `string.atoi` has long since been deprecated and has been
removed from Python 3.