I thought of putting $t=\tan x, x=\arctan t, dx=\frac{dt}{1+t^2}$ but then I erroneously get $$\int_{tan(0)}^{\tan(n\pi)}\frac{dt}{(1+t^2)(1+t^{2k})}$$which is $0$
I believe I should write the integral as $\int_0^\pi(\cdot)+\int_\pi^{2\pi}(\cdot)+\cdots+\int_{(n-1)\pi}^{n\pi}(\cdot)$ and then see that each one is $\pi/2$
$$\int_0^{n\pi}\frac{dx}{1+\tan^{2k}x}$$ The integrand is periodic with period $\pi$ and symmetric within a period about $\pi/2$: $$=2n\int_0^{\pi/2}\frac{dx}{1+\tan^{2k}x}$$ Swap the integral bounds. The integrand then evaluates to $\frac{\tan^{2k}}{1+\tan^{2k}x}$ by $\tan(\pi/2-x)=\cot x$. The sum of the two integrands is 1: $$=\frac{2n}2\int_0^{\pi/2}1\,dx=\frac{n\pi}2$$