old_contents: #!/usr/bin/python
  
  from Adafruit_Thermal import *
  import Image
  import sys
  printer = Adafruit_Thermal("/dev/ttyAMA0", 19200, timeout=5)
  
  # printer.wake()       # Call wake() before printing again, even if reset
  # printer.printImage(Image.open(sys.argv[1]), True)
  printer.printImage("/home/pi/test_python.png", True)
  # printer.feed(3)
  # printer.sleep()      # Tell printer to sleep
  # printer.setDefault() # Restore printer to defaults
  exit()
  
new_contents: #!/usr/bin/python
  
  from Adafruit_Thermal import *
  import Image
  import sys
  printer = Adafruit_Thermal("/dev/ttyAMA0", 19200, timeout=5)
  
  # printer.wake()       # Call wake() before printing again, even if reset
  # printer.printImage(Image.open(sys.argv[1]), True)
  printer.printImage(Image.open("/Users/juliensanchez/Desktop/1460915518.png"), True)
  # printer.feed(3)
  # printer.sleep()      # Tell printer to sleep
  # printer.setDefault() # Restore printer to defaults
  exit()
  
subject: correct print.py