Accelerating Python code with Numba