def METHOD_NAME(out_dir=DEFAULT_LANGUAGES_DIR):
    response = requests.get(ISO_639_3)
    langs = response.content
    response = requests.get(ISO_MACROLANGUAGES)
    macro = response.content
    write_languages_file(langs, macro, out_dir)
    supplemental = open(CLDR_SUPPLEMENTAL_DATA)
    xml = etree.parse(supplemental)
    write_country_official_languages_file(xml, out_dir)