add cdef for pi

pi is no longer imported from numpy so must add it here