Cython specific implementation of certain modules