Refactored tutorlib/TutorConfigure.py