my version of adafruit python printer code