for _line in data:
    line = _line.strip().split(':')
if len(line) == 1:
    last = line[0]
if last not in result:
    result[last] = []
elif len(line) == 2:
    obj = [line[0].strip(), line[1].strip()]
result[last].append(obj)
Python: regex to catch data