def main():
message_names = set()<EOL>packages = []<EOL>messages = []<EOL>extensions = []<EOL>constants = []<EOL>for info in extract_message_info():<EOL><INDENT>message_names.add(info.title)<EOL>packages.append(<EOL>'<STR_LIT>'.format(<EOL>BASE_PACKAGE, info.module))<EOL>messages.append(<EOL>'<STR_LIT>'.format(<EOL>BASE_PACKAGE, info.module, info.title))<EOL>extensions.append(<EOL>'<STR_LIT>'.format(<EOL>info.const, info.module, info.accessor))<EOL>constants.append(<EOL>'<STR_LIT>'.format(<EOL>info.const))<EOL><DEDENT>for module_name, message_name in extract_unreferenced_messages():<EOL><INDENT>if message_name not in message_names:<EOL><INDENT>message_names.add(message_name)<EOL>messages.append('<STR_LIT>'.format(<EOL>BASE_PACKAGE, module_name, message_name))<EOL><DEDENT><DEDENT>print(OUTPUT_TEMPLATE.format(<EOL>packages='<STR_LIT:\n>'.join(sorted(packages)),<EOL>messages='<STR_LIT:\n>'.join(sorted(messages)),<EOL>extensions='<STR_LIT>'.join(sorted(extensions)),<EOL>constants='<STR_LIT:\n>'.join(sorted(constants))))<EOL>return <NUM_LIT:0><EOL>
Script starts somewhere around here.