Use is to compare with None in backend_pdf

Fixes some of the Numpy future warnings raised with numpy 1.9 

The remaining ones are thrown from the Capi inside _tri.cpp and are likely related to the use of PyCXX. I don't think that there is much point in fixing them if the plan is to replace the use of PyCXX with the pure Python Capi