def update_readme_for_modules(modules):
readme = parse_readme()<EOL>module_docstrings = core_module_docstrings()<EOL>if modules == ["<STR_LIT>"]:<EOL><INDENT>modules = core_module_docstrings().keys()<EOL><DEDENT>for module in modules:<EOL><INDENT>if module in module_docstrings:<EOL><INDENT>print_stderr("<STR_LIT>".format(module))<EOL>readme[module] = module_docstrings[module]<EOL><DEDENT>else:<EOL><INDENT>print_stderr("<STR_LIT>".format(module))<EOL><DEDENT><DEDENT>readme_file = os.path.join(modules_directory(), "<STR_LIT>")<EOL>with open(readme_file, "<STR_LIT:w>") as f:<EOL><INDENT>f.write(create_readme(readme))<EOL><DEDENT>
Update README.md updating the sections for the module names listed.