'Get the previous valid month.'

def get_previous_month(self, date):

    (first_day, last_day) = _month_bounds(date)
    prev = (first_day - datetime.timedelta(days=1))
    return _get_next_prev_month(self, prev, is_previous=True, use_first_day=True)
