fix Issue 10386 - Package import feature breaks with static libraries
fix Issue 10421 - 'package' access should work with package module
Small fix for DIP37 test cases
Merge pull request #2231 from 9rnsr/fix10421

Issue 10421 - 'package' access should work with package module