More python3 fixes.

Changed the way the translate command that is passed to ghostscript is generated. This should now work on both python2.6+ and python3.