[WIP] Refactor MSM

I'm confused. You removed the `import scipy.sparse` but this line still works