My attempt to learn python the hard way