extract list of modules from a package