remove non-masked EM from the cython and python modules