We should switch to the new imports described [here](https://setuptools.pypa.io/en/latest/pkg_resources.html), which would also avoid the setuptools dependency currently missing in ``requirements.txt``