import inspect
import calendar


print(calendar.month(2024, 8))
print(calendar.month(2024, 8, 4, 2))

calendar.setfirstweekday(calendar.SUNDAY)
print(calendar.month(2024, 8, 4, 2))