Position XYZ nested in a Position List

Hi all, yet another issue im trying to solve with code. :)

i have a number of objects that have Position XYZ nested in a Position List. This is throwing off some code im using to select keyframes.

how can i remove this while maintaining the key frames?

thanks so much!