Add ergodic triming option to BuildMSM.py