getpreviousprices.py