def transform_soups(config, soups, precomputed):
 fixup_internal_links(config, soups)
 ensure_headings_linkable(soups)
 generate_page_tocs(soups, precomputed)
 link_pantsrefs(soups, precomputed)

def transform_soups ( config , soups , precomputed ) : fixup_internal_links ( config , soups ) ensure_headings_linkable ( soups ) generate_page_tocs ( soups , precomputed ) link_pantsrefs ( soups , precomputed )
mutate our soups to be better when we write them out later .