adding some examples from python the hard way