a) Prove that two paths $f,g$ from $x$ to $y$ give rise to the same isomorphism from $\pi(X,x)$ to $\pi(X,y)$ (i.e. $u_f=u_g)$ if and only if $[g*\bar{f}] \in Z(\pi(X,x))$.
b) Let $u_f: \pi(X,x) \rightarrow \pi(X,y)$ be the isomorphism determined by a path $f$ from $x$ to $y$. Prove that $u_f$ is independent of $f$ if and only if $\pi(X,x)$ is abelian.
I manage to prove part a) but not part b). I prove the backward direction of part b) by using part a). Can anyone give some hints on how to prove the forward direction?