'Run through all the enums in a job and add their string variant'

def _fixup_job(self, job):

    fixup_enums(job.status, {'runState': ThriftJobState, 'priority': ThriftJobPriority})
    fixup_enums(job, {'priority': ThriftJobPriority})
    if (job.tasks is not None):
        for tip in job.tasks.tasks:
            fixup_enums(tip.taskID, {'taskType': ThriftTaskType})
            self._fixup_task_state(tip)
            for taskstatus in tip.taskStatuses.values():
                self._fixup_taskstatus(taskstatus)
