def tasks(run_str, thy_dct):
    ' runstr\n    '
    es_block = ioformat.ptt.end_block(run_str, 'els', footer='els')
    trans_block = ioformat.ptt.end_block(run_str, 'trans', footer='trans')
    therm_block = ioformat.ptt.end_block(run_str, 'thermo', footer='thermo')
    ktp_block = ioformat.ptt.end_block(run_str, 'ktp', footer='ktp')
    proc_block = ioformat.ptt.end_block(run_str, 'proc', footer='proc')
    es_tsks = _tsk_lst(es_block, 3)
    therm_tsks = _tsk_lst(therm_block, 2)
    ktp_tsks = _tsk_lst(ktp_block, 2)
    trans_tsks = _tsk_lst(trans_block, 3)
    proc_tsks = _tsk_lst(proc_block, 3)
    es_tsks = _tsk_defaults(es_tsks)
    therm_tsks = _tsk_defaults(therm_tsks)
    ktp_tsks = _tsk_defaults(ktp_tsks)
    trans_tsks = _tsk_defaults(trans_tsks)
    proc_tsks = _tsk_defaults(proc_tsks)
    _check_tsks(es_tsks, thy_dct)
    _check_tsks(therm_tsks, thy_dct)
    _check_tsks(ktp_tsks, thy_dct)
    _check_tsks(trans_tsks, thy_dct)
    _check_tsks(proc_tsks, thy_dct)
    tsk_dct = {'es': es_tsks, 'thermo': therm_tsks, 'ktp': ktp_tsks, 'trans': trans_tsks, 'proc': proc_tsks}
    return tsk_dct
runstr
def tasks(run_str, thy_dct):
    ' \n    '
    es_block = ioformat.ptt.end_block(run_str, 'els', footer='els')
    trans_block = ioformat.ptt.end_block(run_str, 'trans', footer='trans')
    therm_block = ioformat.ptt.end_block(run_str, 'thermo', footer='thermo')
    ktp_block = ioformat.ptt.end_block(run_str, 'ktp', footer='ktp')
    proc_block = ioformat.ptt.end_block(run_str, 'proc', footer='proc')
    es_tsks = _tsk_lst(es_block, 3)
    therm_tsks = _tsk_lst(therm_block, 2)
    ktp_tsks = _tsk_lst(ktp_block, 2)
    trans_tsks = _tsk_lst(trans_block, 3)
    proc_tsks = _tsk_lst(proc_block, 3)
    es_tsks = _tsk_defaults(es_tsks)
    therm_tsks = _tsk_defaults(therm_tsks)
    ktp_tsks = _tsk_defaults(ktp_tsks)
    trans_tsks = _tsk_defaults(trans_tsks)
    proc_tsks = _tsk_defaults(proc_tsks)
    _check_tsks(es_tsks, thy_dct)
    _check_tsks(therm_tsks, thy_dct)
    _check_tsks(ktp_tsks, thy_dct)
    _check_tsks(trans_tsks, thy_dct)
    _check_tsks(proc_tsks, thy_dct)
    tsk_dct = {'es': es_tsks, 'thermo': therm_tsks, 'ktp': ktp_tsks, 'trans': trans_tsks, 'proc': proc_tsks}
    return tsk_dct