code: def get_app_modules(self, apps):
          
          modules = getattr(self, "_modules", [])
  
          if not modules:
              from django.utils.module_loading import module_has_submodule
  
              # Try importing a modules from the module package
              package_string = '.'.join(['leonardo', 'module'])
  
              for app in apps:
                  exc = '...'
                  try:
                      # check if is not full app
                      _app = import_module(app)
                  except Exception as e:
                      _app = False
                      exc = e
  
                  if module_has_submodule(
                          import_module(package_string), app) or _app:
                      if _app:
                          mod = _app
                      else:
                          mod = import_module('.{0}'.format(app), package_string)
                      if mod:
                          modules.append(mod)
                          continue
  
                  warnings.warn('%s was skipped because %s ' % (app, exc))
  
              self._modules = modules
          return self._modules
docs: return array of imported leonardo modules for apps