PYTHON_DataTree managment! ShiftingPath_RemappingPath

Hello to everyone.

Do you know how to shift a path on python?
I’m think to use GH_PathOffset.OffsetPath but i cannot understand how to set it correctly.
what are the inputs i need?

I start from:
objects --> (input into Python from grasshopper as datatree) [path : {A;B;C}] and i want to shift it to -->{A;B}

then I extract the datatree structure (i hope) :
datatree = DataTreeobject

and then the problem:
GH_PathOffset.OffsetPath(objects.Paths, -1, datatree) ???

#HELP!!!

i need to do that into python for gh

I get this by converting the tree in to a list with the “tree viewer” and using it as a list… Very boring and not elegant at all!