Fixed test_optimize_full_l test case for python2.