Updated Python  Code for final analysis

Here is the final code base for the python code. We have been able to recreate a number of the results that the R team found.