Robin, I already ran the test suite right after you have fixed the XPM stuff, not having fixed the labelbook.py yet, and it gave me that KeyError stuff. After that I went and fixed labelbook.py, presuming that this would fix the damn KeyError stuff, but it does not.

So if you have figured out what exactly needs to be fixed, please go ahead and fix it. I'll close the pull request #18.