[WIP] Hacking on top of SwitchingLDS

I'm going to just hack a little bit on top of @rbharath's PR. Try to get familiar with the code and get it more in line with prefered style (pep8, more verbose variable names), etc.