def ulozNarozeniny():
    for mesic in sorted(narozeniny.keys()): 
        for den in sorted(narozeniny[mesic].keys()): 
            for osoba in narozeniny[mesic][den]:
                sys.stdout.write('{den}.{mesic}.{rok} {jmeno}: {poznamka}\n'.format(
                    **dict({'den':den, 'mesic':mesic}, **osoba) ))
