Copy-pasted original functions in Cython