Basic gcode sender in Python