First cut of the thesis, initially written in Python