See the guide for Migrating from Cython 0.29 to 3.0.
The only DEFs in mudpy were introduced as part of #4 to avoid using hard-coded values in the "friendly" C-function calls.
Eventually, we should replace the DEFs with one of the strategies recommended in the guide.