[step:Construct the inverse by using the inverse local changes]
For each $i \in I$, define $b_i: U_i \to G$ by $b_i(x)=a_i(x)^{-1}$. Since $G$ is a Lie structure group, inversion $G \to G$ is smooth, and therefore each $b_i$ is smooth. Define the map $\Psi: E_{g'} \to E_g$ by $\Psi(q_{g'}(i,x,y)):=q_g(i,x,a_i(x)^{-1}(y))$.
We prove that $\Psi$ is well-defined. Suppose $(i,x,y)\sim_{g'}(j,x,z)$ with $x \in U_i \cap U_j$ and $z=g'_{ji}(x)(y)$. From
\begin{align*}
g'_{ji}(x)=a_j(x)\circ g_{ji}(x)\circ a_i(x)^{-1}
\end{align*}
we obtain, by composing on the left with $a_j(x)^{-1}$, the identity
\begin{align*}
g_{ji}(x)\circ a_i(x)^{-1}=a_j(x)^{-1}\circ g'_{ji}(x).
\end{align*}
Evaluating this identity at $y \in F$ gives
\begin{align*}
g_{ji}(x)(a_i(x)^{-1}(y))=a_j(x)^{-1}(g'_{ji}(x)(y))=a_j(x)^{-1}(z).
\end{align*}
By the defining relation $\sim_g$, this means
\begin{align*}
(i,x,a_i(x)^{-1}(y))\sim_g(j,x,a_j(x)^{-1}(z)).
\end{align*}
Hence
\begin{align*}
q_g(i,x,a_i(x)^{-1}(y))=q_g(j,x,a_j(x)^{-1}(z)),
\end{align*}
so $\Psi$ is independent of the representative. In the local trivializations, $\Psi$ is represented over $U_i$ by $(x,y)\mapsto (x,a_i(x)^{-1}(y))$, which is smooth by smoothness of $b_i$ and of the $G$-action on $F$. The same projection computation as for $\Phi$ gives $\pi_g\circ\Psi=\pi_{g'}$, so $\Psi$ is a smooth bundle map over $M$.
For every representative $(i,x,y)$ of a point in $E_g$,
\begin{align*}
\Psi(\Phi(q_g(i,x,y)))=\Psi(q_{g'}(i,x,a_i(x)(y)))=q_g(i,x,a_i(x)^{-1}(a_i(x)(y)))=q_g(i,x,y).
\end{align*}
Similarly, for every representative $(i,x,y)$ of a point in $E_{g'}$,
\begin{align*}
\Phi(\Psi(q_{g'}(i,x,y)))=\Phi(q_g(i,x,a_i(x)^{-1}(y)))=q_{g'}(i,x,a_i(x)(a_i(x)^{-1}(y)))=q_{g'}(i,x,y).
\end{align*}
Therefore $\Psi=\Phi^{-1}$, and $\Phi$ is a bundle isomorphism over $M$.
[/step]