added cython compiler directives to pyx