Fixed two memory leaks in the python/C interface that kept some classes alive for each sample and locus.