critical bug fix to cython implementation of mc class