last price is now stored within a python class attribute instead of as an entry in a log file. Added __name__=__main__ check.