edited print.py