Adapt datastructures as expected in pyXar