def _months_in_range(min_date, max_date):
    """Get a range of months between min_date and max_date, inclusive"""
    months = []
    for year in range(min_date.year, max_date.year + 1):
        for month in range(1, 13):
            if year == min_date.year and month < min_date.month:
                continue
            elif year == max_date.year and month > max_date.month:
                continue
            else:
                months.append((year, month))

    return months