Added scipy.optimize to mock.