Moved proto.py into jobs.py function.