def SegmentCollection(mode='agg-fast', *args, **kwargs):
 if (mode == 'raw'):
  return RawSegmentCollection(*args, **kwargs)
 return AggSegmentCollection(*args, **kwargs)

def SegmentCollection ( mode = 'agg-fast' , * args , ** kwargs ) : if ( mode == 'raw' ) : return RawSegmentCollection ( * args , ** kwargs ) return AggSegmentCollection ( * args , ** kwargs )
mode: string - "raw" - "agg" .