going through python cookbook oreily