Reduce distutils dependency
Remove distutils dependency from configure, fall back to using setuptools if possible in Python extension build, and update Python version detection macros.
Remove distutils dependency from configure, fall back to using setuptools if possible in Python extension build, and update Python version detection macros.