python cookbook 2nd code