added Python code for Chapter 5
added Python code for chapter 7
added Python code for chapter 9