Skipping tests for different versions of Scipy for optimize.py

I am using the skipping test mechanism to make the tests on optimize to be a bit more readable. 
Nothing much in this PR. Mostly a change in style.
I see what you're trying to do now--but perhaps this info should be printed out in the beginning of the test suite run instead to know the full configuration?