Added analyze.py
Corrected part 1, marketsim.py