Lazy import pkg_resources
Lazy import pkg_resources

pkg_resources is costly to import so don't import it until we actually
need it.

Change-Id: I2152b6b3fd47597b5af032e74a840e2f5b89c383

openstack-dev/pbr,openstack-dev/pbr,openstack-dev/pbr