def METHOD_NAME(args):
    keyword_definitions = load_definitions(args.keyword_defs)
    pb_keywords = extract_keywords(keyword_definitions)
    keyword_page = generate_page(pb_keywords, args.template_dir)
    outputname = os.path.join(args.output_dir, TEMPLATE_FILE.replace('.j2', ''))
    update_file_if_different(outputname, to_bytes(keyword_page))
    return 0