Python fractal generator