https://gist.github.com/tylerneylon/e70a684b88809f74168f3a36...
It runs nicely in Python 2 (and slower in Python 3).
Here's a nice code golf Mandelbrot that also uses no image library (it produces a bmp file): https://codegolf.stackexchange.com/a/23465