Benchmark Python and Cython code