cython: verify against core's version before doing anything