revamped integercheck.py