Created Cython wrapper for comp_p