Add richcmp slotdef and a few other things to get the pwd module working