Python functions are used in leu of gcode to enable easy scripting and advanced functionality.