Thanks for the report Parsifal. This specific issue looks very much like bug #677267, which was fixed in pyexiv2 0.3.0 (the latest release is now 0.3.2).
This is the output I get when running your example script against pyexiv2 0.3.2:
Xmp.digiKam.TagsList: <pyexiv2.xmp.XmpTag object at 0x27bf750> [u'Place', u'Place/Canada', u'Place/Canada/Yukon', u'Place/Canada/Yukon/Circle D Ranch', u'Vehicle', u'Vehicle/Aircraft', u'Style', u'Style/Pair', u'Adventure']
Xmp.lr.hierarchicalSubject: <pyexiv2.xmp.XmpTag object at 0x27bf790> ['Place', 'Place|Canada', 'Place|Canada|Yukon', 'Place|Canada|Yukon|Circle D Ranch', 'Vehicle', 'Vehicle|Aircraft', 'Style', 'Style|Pair', 'Adventure']
I am going to mark this bug as a duplicate of bug #677267, if you can test the latest release to confirm that the issue is fixed your feedback would be much appreciated.
Thanks for the report Parsifal. This specific issue looks very much like bug #677267, which was fixed in pyexiv2 0.3.0 (the latest release is now 0.3.2).
This is the output I get when running your example script against pyexiv2 0.3.2:
Xmp.digiKam. TagsList: <pyexiv2.xmp.XmpTag object at 0x27bf750> [u'Place', u'Place/Canada', u'Place/ Canada/ Yukon', u'Place/ Canada/ Yukon/Circle D Ranch', u'Vehicle', u'Vehicle/ Aircraft' , u'Style', u'Style/Pair', u'Adventure'] hierarchicalSub ject: <pyexiv2.xmp.XmpTag object at 0x27bf790> ['Place', 'Place|Canada', 'Place| Canada| Yukon', 'Place| Canada| Yukon|Circle D Ranch', 'Vehicle', 'Vehicle|Aircraft', 'Style', 'Style|Pair', 'Adventure']
Xmp.lr.
I am going to mark this bug as a duplicate of bug #677267, if you can test the latest release to confirm that the issue is fixed your feedback would be much appreciated.