def get_props_cycled(col, prop, fx=(lambda x: x)):
 n = len(col.get_paths())
 t_prop = [fx(x) for x in prop]
 sliced = islice(cycle(t_prop), None, n)
 return list(sliced)

def get_props_cycled ( col , prop , fx = ( lambda x : x ) ) : n = len ( col . get_paths ( ) ) t_prop = [ fx ( x ) for x in prop ] sliced = islice ( cycle ( t_prop ) , None , n ) return list ( sliced )
we need to cycle the get .