Write the integral as
$$
I=\int_{-\pi}^{0}4\arctan(e^x)-\pi \, dx + \int_{0}^{\pi}4\arctan(e^x)-\pi \, dx \, .
$$
Upon making the substitution $u=-x$, we find that
\begin{align}
I &= -\int_{\pi}^{0}4\arctan(e^{-u})-\pi \, du + \int_{0}^{\pi}4\arctan(e^x)-\pi \, dx \\[5pt]
&= \int_{0}^{\pi}4\arctan(e^{-x})-\pi \, dx + \int_{0}^{\pi}4\arctan(e^x)-\pi \, dx \\[5pt]
&= \int_{0}^{\pi}4\left(\arctan(e^x)+\arctan(e^{-x})\right)-2\pi \, dx
\end{align}
Note that
$$
\arctan(u)+\arctan\left(\frac{1}{u}\right)=\begin{cases}\dfrac{\pi}{2} &\text{ if $u>0$}\\ -\dfrac{\pi}{2} &\text{ if $u<0$} \, .\end{cases}
$$
In this case, $x\in[0,\pi]$, so $u=e^x>0$ and $\arctan(u)+\arctan(1/u)=\pi/2$, meaning that the integrand is the zero function. Hence, $I=0$.