Python 3 fixes for job dependency stuff.