def _check_tsks(tsk_lsts, thy_dct):
    ' Loop over all of the tasks, add default keywords and parameters\n        and assesses if all the input is valid\n    '
    if (tsk_lsts is not None):
        for tsk_lst in tsk_lsts:
            _tsk = tsk_lst[:(- 1)]
            if (len(_tsk) == 2):
                (obj, tsk) = (_tsk[0], _tsk[1])
            else:
                (obj, tsk) = (None, _tsk[0])
            key_dct = tsk_lst[(- 1)]
            if (obj is not None):
                obj_lst = (SUPP_OBJS if (obj == 'all') else (obj,))
                for _obj in obj_lst:
                    if (_obj not in TSK_KEY_DCT[tsk][0]):
                        error_message(f'obj {obj}, not allowed for {tsk}')
                        sys.exit()
            check_dct1(key_dct, TSK_VAL_DCT, (), 'Task')
            check_thy_lvls(key_dct, thy_dct)
Loop over all of the tasks, add default keywords and parameters
and assesses if all the input is valid
def _check_tsks(tsk_lsts, thy_dct):
    ' Loop over all of the tasks, add default keywords and parameters\n        and assesses if all the input is valid\n    '
    if (tsk_lsts is not None):
        for tsk_lst in tsk_lsts:
            _tsk = tsk_lst[:(- 1)]
            if (len(_tsk) == 2):
                (obj, tsk) = (_tsk[0], _tsk[1])
            else:
                (obj, tsk) = (None, _tsk[0])
            key_dct = tsk_lst[(- 1)]
            if (obj is not None):
                obj_lst = (SUPP_OBJS if (obj == 'all') else (obj,))
                for _obj in obj_lst:
                    if (_obj not in TSK_KEY_DCT[tsk][0]):
                        error_message(f'obj {obj}, not allowed for {tsk}')
                        sys.exit()
            check_dct1(key_dct, TSK_VAL_DCT, (), 'Task')
            check_thy_lvls(key_dct, thy_dct)