pyldb: Always return -1, 0, or 1 in tp_compare functions.