def color_dict_to_objects(d, colorspace='hsv'):
 result = {}
 for (k, v) in d.items():
  result[k] = Color(k, v, colorspace)
 return result

def color_dict_to_objects ( d , colorspace = 'hsv' ) : result = { } for ( k , v ) in d . items ( ) : result [ k ] = Color ( k , v , colorspace ) return result
converts color dict to dict of color objects .