A paedophile who was jailed for abusing young boys while working as a teacher in Leeds has died in jail.