Remove distutils dependency
According to PEPS 632, the package is removed from python 3.12 package.
Migration advice is to reimplement distutils.util.strtobool
ourselves.
That's the purpose of this change.
Pylint has also been updated in pre-commit for deprecated pkgutil.ImpImporter
that has been removed for python 3.12.