Thanks Sebastian, I've just commited your changes as well as the __cmp__ method and some changes on how polib handles encoding.
David.