MAINT: faster expm-related functions using cython