Added inline to Python API code. Final Cython code.