mandelbrot (python implementation)