Fix setuptools pkg_resources deprecation affects Python 3.9 and up