Refactored code into MVC pattern. Moved Python implementation to /python in anticipation of upcoming C# implementation.