Fix errors in jobs.py.

Reviewed at https://reviews.apache.org/r/18996/