Use the negative condition:

    if name == 'children':
        continue
    ...