add python3 printing to stats.py