Metastable python

Large commit of base MetastableSwitchingLDS code, along with examples and helper functions.