MAINT: np.pi -> M_PI
MINOR: add missing type