Fix Python 3 bug in PS backend.
Another Python3 bytes/unicode fix
Flush file handles at the end, since Python 3 won't do it for us.
Merge pull request #1779 from mdboom/ps/python3

Bug in postscript backend in Python 3