quantlib.time.calendar.Calendar.is_weekend

Calendar.is_weekend(self, int week_day)

Returns true iff the date is last business day for the month in given market.