Added the function isDigit
Merge pull request #1 from lg188/patch-1

Added the function isDigit to make the code compatible for users below Python 3.x, thanks to lg188 for this