added function declarations to pal.pyx