def transformToRGB(lst):
  """
   Change representation from 0-255 to 0-1, for triples value corresponding to RGB.
  """
  def normToOne(x): return float(x)/255.
  return [(normToOne(x), normToOne(y), normToOne(z)) for x, y, z in lst]