scipy script with Discrete Time Markov Modeling