CLN/API: use Python C-API for reversing comparisons