Read the (pretty long) blog post over here: zenopelgrims.com/2014/05/fractal-generator-assignment-mayapython/
For my programming assignment here at the NCCA (Bournemouth), I chose to make a fractal generator.
You can generate various fractals through and L-System (Hilbert curve, terdragon curve, and about 15 others). You can also generate a pythagorean tree through a turtle library I wrote.
I can't upload the source code, since other students next year might run away with it. Sorry guys! :-)
EDIT: You can download it now! creativecrash.com/maya/downloads/scripts-plugins/c/fractal-generator-python