update chapter 16 17 code, update chapter 25 code and fix one error

update chapter 16 python code
update chapter 17 python and scheme code
update chapter 25 python and scheme code
fix chapter 25 one error