add gmm.py to hold CPU version