date1 = '2014-10-10'
date2 = '2016-01-07'
y0 = int(date1.split('-')[0])
y1 = int(date2.split('-')[0])
m0 = int(date1.split('-')[1]) - 1
m1 = int(date2.split('-')[1]) - 1
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
    'Oct', 'Nov', 'Dec']
result = []
start = m0
for y in range(y0, y1 + 1):
    for m in range(start, 12):
        result.append(str(months[m % 12]) + '-' + str(y))
if y == y1 and m % 12 == m1:
    break
start = 0
print(result)
Создать список месяцев между интервалами в python