Updated Python cookbook for 2.7.6