Fix the Optim_5_Dual Matlab Tour

Also fixes the python notebook generator to start numbering the exercises at 1.