The solution I gave in the other post is more complex to deal with the request to build the structure for any nesting level from the same base path. Here’s a simple direct system.tag.configure replacement for the tag write to tag property that you have above:
def overrideTagProperty(path, value):
basePath, name, overrideProperty = path.replace('.','/').rsplit('/', 2)
system.tag.configure(basePath, [{'name':name, overrideProperty:value}], 'm')
overrideTagProperty(Path + ".opcItemPath", "ns=1;s=[Simulated_Device]_Meta:Ramp/Ramp2")