Is it possible to write a Python script to realize the function of path mapper? for exampe {a} -> {a + 66}

Hi everyone,

The path mapper is a powerful function to change the data tree path, however, if I want to realize it using a Python script, how should I do?

Thanks!
Capture