'returns the number of slots requested for the given job id
returns None if job_id is invalid'

def num_slots_for_job(self, job_id):

    ujid = unicode(job_id)
    for j in self.jobs:
        if (j['JB_job_number'] == ujid):
            return int(j['slots'])
