Python program that generates fractals