Instead of hard coding the year, you could make it:

```python
errata = errata.replace("%%DATE%%", datetime.date(datetime.now().year - 1, random.randint(1,12), random.randint(1,28)).strftime(FORMAT))
```