Where have you been all my life? ;)
Grep within .gz file without uncompressing it first. One of life’s small pleasures.
zgrep "search term" example.gz
It turns out in Python 2.7 datetime.strftime can’t handle dates before 1900. e.g.
ValueError: year=1066 is before 1900; the datetime strftime() methods require year >= 1900