Fix compilation with Cython 3.0.0
The latest version of Cython 3.0.0 released today causes some compilation errors, if one follows the standard pyseobnr
installation instructions.
This MR fixes this by minor changes to the declaration of two of the Cython functions.