import pkg_resources removed as it was unused