def get_int_values(layoutmessage):
    """ Converts a layout from a str message to a list of numbers 
    
    From a string of the form "infoname= { ...int values...}" returns only the
    int values in a list of integers
    
    Parameters
    ----------
    layoutmessage: str
        A str describing the hex or num Layout (e.g. hexLayout= { 50 6 ... 6})
        
    Returns
    -------
    layout: int list
        The mapped list of integers
    """
    
    # DONE convert str message to int list
    # split and keep only { ... } part
    # convert it to list of ints DONE
    
    # string with only the numbers
    # keep only text within brackets
    numstr = layoutmessage[layoutmessage.find("{")+1:layoutmessage.find("}")]
    # integer list from the numstr
    # split  on spaces, map strings to ints
    # list is needed from python 3...
    layout = list(map(int, numstr.split()))
    # OBSOLETE numstr = re.searc# OK h(r'\{.*?\}', layoutmessage)   
    # OK print(numstr)
    # OK print('-return value-')
    # OK print(layout)
    return layout