Centralized the objects in runJobApi.py
Updated to use central objects