Fetch the last day of the month in Python