Process Speed Estimation Python Programming