Extended Cython bindings.