Added some python analysis code