python tutorial chapter 4