Offline nodes monitor

all this is not needed, "requests" will do it for you automatically
just:
[requests.get(jenkins_url + 'job/{0}/api/json'.format(j)) for j in jobs.split(',')]