Extract _resolve for resolving a name or package to a module.
Extract _resolve for resolving a name or package to a module. Reduces complexity and harmonizes py version variance somewhat.
Extract _resolve for resolving a name or package to a module. Reduces complexity and harmonizes py version variance somewhat.