changes to pyx files to try to avoid compilation error on Travis