Python book exsercies