def _round_to_n(sequence, n=100):
    """ Resolves issue when dividing by N results in a set of numbers that don't add up to N again

        E.g. 100 / 3 = 33
             33 * 3 = 99

        For the above example, this function returns [33, 33, 34]
     """
    if sum(sequence) != n:
        sequence[-1] = n - sum(sequence[:-1])
    return sequence
