Stupidly deleted printer.py, here it is again :)