D Optimal Design Python