def METHOD_NAME(inFile, template, target, key, moduleName):
    newFile = os.path.join(target, inFile.replace(key, moduleName))
    print("creating %s" % newFile)
    path = os.path.dirname(newFile)
    if not os.path.exists(path):
        os.makedirs(path)
    fp = open(os.path.join(template, inFile))
    contents = fp.read()
    fp.close()
    contents = contents.replace(key, moduleName)
    contents = contents.replace(key.upper(), moduleName.upper())
    fp = open(newFile, "w")
    fp.write(contents)
    fp.close()