Replace str.format (new in 2.6) with % transformation.