Learn python the hard way ex9ex10