begin translating FractalTransform into pure python