While I recognize the good motivation here, it seems like the children are being punished for the sins of the parents.
I don't think that children would consider *not* having to attend after-school classes in a religion they don't practice to be "punishment."