Just off the top of my head, the P0420 is a catalytic converter operating below efficiency threshold. P0171 and P0158 are mixture codes.
IMHO, with that many codes, you need to start with the FIRST code output, and solve that one, clear the rest, and drive it until the MIL light comes on again. Then repeat the procedure until all of the codes stop recurring. Usually, one problem starts, and ends up throwing things out of kilter until it generates a bunch more "bogus" codes.