minor cleanups
guard against incorrect values for PYLONG_BITS_IN_DIGIT that do not match CPython's