Fix Python 3 incompat in galaxy.jobs.runners.util.

Module shared with LWR so hoping for Python 3 compat.