Use pkg_resources.declare_namespace instead of pkgutil.extend_path if setuptools/distribute is available