chapter 1 python solutions