Get rid of `string.atoi`

The function `string.atoi` has long since been deprecated and has been
removed from Python 3.
Merge pull request #9 from flacjacket/atoi-fix

Get rid of `string.atoi`