def _bi_range(start, end):
    """
    Inclusive range function, works for reverse ranges.

    eg. 5,2 returns [5,4,3,2] and 2, 4 returns [2,3,4]

    """
    if start == end:
        return start,
    elif end < start:
        return reversed(range(end, start + 1))
    else:
        return range(start, end + 1)
