def get_list_from_interval(input_interval):
    """
    Created     20180619   by Magnus Wenzer
    Updated     20180717   by Magnus Wenzer

    Takes an interval in a list and returns a list with the gange of the interval: 
        Example: [2, 7] => [2, 3, 4, 5, 6, 7] 
    If start value > stop value the interval in intepretated as month interval: 
        Example: [12, 3] => [12, 1, 2, 3]
    """ 
    if not input_interval:
        return None
    elif not len(set([type(i) for i in input_interval])) == 1:
        return None
    
    start_value = input_interval[0]
    stop_value = input_interval[-1]
    
    if type(start_value) != list: 
        output_list = []
        value = input_interval[0]
        while value != input_interval[-1]:
            output_list.append(value)
            value += 1
            if stop_value < start_value and value == 13:
                value = 1
        output_list.append(stop_value)
        return output_list
    else:
        output_list = []
        for item in input_interval: 
            output_list.append(get_list_from_interval(item))
        return output_list