modules.pkg_resource: avoid shadowing outer version() func
Merge pull request #10398 from hulu/pkg-res-shadow

modules.pkg_resource: avoid shadowing outer version() func