Think Python starting chapter 17