Update printer.py

a git edited version