Code for Daniel Shiffman's book The Nature of Code (http://natureofcode.com/) in Python