from typing import Dict
import re


def isis3_to_dict(instr: str)-> Dict:
    """
    Given a stdout string from ISIS3, return a Dict version
    
    :param instr:
    :return: dictionary of isis output
    """
    groups = re.findall(r'Group([\S\s]*?)End_Group', instr)
    out = {}
    for group in groups:
        lines = [x.replace('=', '').split() for x in group.split('\\n')]
        group_name = lines[0][0]
        out[group_name] = {t[0]: t[1] for t in lines[1:-1]}
    return out