def METHOD_NAME(modulepath, name, top, build):
    pathlib.Path(modulepath + "/bout++").mkdir(parents=True, exist_ok=True)
    filename = modulepath + "/bout++/" + name
    if "LOADEDMODULES" in os.environ:
        prereq = []
        for pr in os.environ["LOADEDMODULES"].split(":"):
            if pr.startswith("bout++/"):
                continue
            prereq.append(f"prereq {pr}\n")
        prereq = "".join(prereq)
    else:
        prereq = ""
    with open(filename, "w") as f:
        f.write(
            f"""#%Module 1.0