'Get a list of Oozie jobs.
Note that offset is 1-based.
kwargs is used for filtering and may be one of VALID_FILTERS: name, user, group, status'

def get_jobs(self, jobtype, offset=None, cnt=None, filters=None):

    params = self._get_params()
    if (offset is not None):
        params['offset'] = str(offset)
    if (cnt is not None):
        params['len'] = str(cnt)
    if (filters is None):
        filters = []
    params['jobtype'] = jobtype
    filter_list = []
    for (key, val) in filters:
        if (key not in OozieApi.VALID_JOB_FILTERS):
            raise ValueError(('"%s"    is    not    a    valid    filter    for    selecting    jobs' % (key,)))
        filter_list.append(('%s=%s' % (key, val)))
    params['filter'] = ';'.join(filter_list)
    resp = self._root.get('jobs', params)
    if (jobtype == 'wf'):
        wf_list = WorkflowList(self, resp, filters=filters)
    elif (jobtype == 'coord'):
        wf_list = CoordinatorList(self, resp, filters=filters)
    else:
        wf_list = BundleList(self, resp, filters=filters)
    return wf_list
