code for python the hard way