[Cython] Non-deterministic behavoiur?