for every app in app_labels. call the method autodetector.arrange_for_graph with 2 arguments: changes, loader.graph, substitute the result for changes.
changes = autodetector . arrange_for_graph ( changes , loader . graph )