Brought new Cython API in line with Flask wrapper