code: def _expand_libs_in_apps(specs):
      
      for app_name, app_spec in specs['apps'].iteritems():
          if 'depends' in app_spec and 'libs' in app_spec['depends']:
              app_spec['depends']['libs'] = _get_dependent('libs', app_name, specs, 'apps')
docs: Expands specs.apps.depends.libs to include any indirectly required libs