Quick and dirty rewrite of gcode files to turn a laser off and on based on MACH3 M10 and M11 commands
script takes a single argument, the name of the input file
line replacement data is in a nested list at the top of the code
sample input and outfiles included