python fractal generator