def _colors(n):
 for i in xrange(n):
  (yield colorsys.hsv_to_rgb((float(i) / n), 1.0, 1.0))

def _colors ( n ) : for i in xrange ( n ) : ( yield colorsys . hsv_to_rgb ( ( float ( i ) / n ) , 1.0 , 1.0 ) )
generator function for creating n colors .