Have you thought about converting your analysis to c++?
Python is loads easier to code, but c++ and similar level languages blow it out of the water in terms of speed, since Python has an interpreted implementation compared to a compiled implementation of c++ style languages.
RE: Python Code Speed Improvement