Correct logic for comparable flag.
Fix some api filters.
can't be lazy here :).
We need to serialise with pickle due to the python types we serialize.