Process Speed Estimation Python Code