'Get the next valid month.'

def get_next_month(self, date):

    (first_day, last_day) = _month_bounds(date)
    next = (last_day + datetime.timedelta(days=1)).replace(day=1)
    return _get_next_prev_month(self, next, is_previous=False, use_first_day=True)
