Attempt to quantitatively analyze equity market using Python