aprinter_encode.py: add support for gcode comments