def get_colors(k):
    """
    Return k colors in a list. We choose from 7 different colors.
    If k > 7 we choose colors more than once.
    """

    base_colors = ['b', 'r', 'g', 'c', 'm', 'y', 'k']
    colors = []
    index = 1
    for i in range(0, k):
        if index % (len(base_colors) + 1) == 0:
            index = 1
        colors.append(base_colors[index - 1])
        index += 1
    return colors