python stock analysis