def _get_type_and_value(entry):
    """Parse dmidecode entry and return key/value pair"""
    r = {}
    for l in entry.split('\n'):
        s = l.split(':')
        if len(s) != 2:
            continue
        r[s[0].strip()] = s[1].strip()
    return r