Unix: fix fortune on Python 3

Closes #888
Merge pull request #889 from Mkaysi/fortune

Unix: fix fortune on Python 3