new cython wrapped functions