why is sec(pi)x = (1/pi)secx

as you have written it, it's not.

sec(π) = -1

I think your notation is faulty. I cannot think of any manipulations that end up with that 1/π out front.

Is there a derivative or integral involved somehow?