The code for the book Make Your Own Mandelbrot is now on github:
And whilst I was doing this, I updated the code to Python 3.
This required only minor changes: the xrange() becomes the simpler range() function.
(sadly the 3d code requires the mayavi libraries which are not yet ported to Python 3)