Rounding doubles during Python generation