updating papstats.py to fit python 3