added p31.py