Add Cost.is_stochastic to make warning more selective

Line up the quote marks or I think PEP8 will complain.