pytalloc: Add default compare function.