Python is an awesome language because of its dynamically type-ness. Here we take a formula, and upgrade it from taking a complex (numbers that exist on two number lines type to taking quaternions (numbers with 4 axis), all in the pursuit of 3d fractals.
Python makes it easy to manipulate mathematics without worrying about a lot of heavy lifting - this is all done by the libraries and lower level languages, and allows you to concentrate on solving the problem at hand. Which is why pyquaternion is the python library of the day!