updated main.py and pantory.py