Lemma (homotopy induces basepoint change on fundamental groups)
Suppose $H: X\times [0,1]\to Y$ is a homotopy between maps $f$ and $g$, and let $x_0$ be a basepoint.
Letting $u = H(x_0, \cdot): [0,1]\to Y$ be a path in $Y$ from $f(x_0)$ to $g(y_0)$, we have $g_\ast$${}={}$$u_\#$${}\circ f_\ast$, i.e. this diagram commutes: