Python 3 compatibility with worker.get_current_job().