Accelerating code with Cython