python optim slides