Properly set Py_OptimizeFlag according to value of the --opt flag.