Speed test for python