Python Machine Problem with Fractals