Setting vertex color with ob.data.vertex_colors["Col"].data[0].color stores values wrong
Vertex colours are stored as 8-bit sRGB values. This means that they have a maximum precision of 1/256, but the raw values are also further distorted by the sRGB colourspace translation.