My attempt at learn python the hard way