major pythonification (broke into functions, classes, modules)