def isa_group_separator(line):
    return line == '\n'
with open('data_file') as f:
    for key, group in itertools.groupby(f, isa_group_separator):
        if not key:
            data = {}
for item in group:
    field, value = item.split(':')
value = value.strip()
data[field] = value
print('{FamilyN} {Name} {Age}'.format(**data))
Python: How to loop through blocks of lines