support import of modules under packages missing attributes
minor refactoring previous commit
Merge pull request #20 from kouk/packagefix

support import of modules under packages missing attributes