Unix: fix fortune on Python 3

Closes #888