itera o último dia de meses python

import calendar
year, month = 2016, 12
calendar.monthrange(year, month)[1]
Tough Thrush