Gaussian mixtures implemented in python and C