Addition of pylearn2.utils.contains_inf and pylearn2.utils.isfinite