The Massachusetts Bay Transportation Authority will spend about $253 million to overhaul 40 commuter-rail diesel locomotives ...