Added timings to python codes