The question is:
"Show that $X$ is independent of $\sigma(Y)$ if and only if for bounded and measurable $f,g$, $E[f(X)g(Y)]=E[f(X)]E[g(Y)]$."
I think I have managed to prove the forward statement by conditioning the expectation on $Y$, but I'm having difficulty doing the reverse. I assume we want to show that $E[X|\sigma(Y)]=E[X]$ but I'm stumped after that.
Proving that $X$ is independent of $\sigma\left(Y\right)$ is the same as proving that $X,Y$ are independent which on its turn is the same as proving that: $$P\left(X\in A,Y\in B\right)=P\left(X\in A\right)P\left(Y\in B\right)$$ for arbitrary Borel sets $A,B$.
Taking $f=\mathbf{1}_{A}$ and $g=\mathbf{1}_{B}$ we find: $$P\left(X\in A,Y\in B\right)=\mathbb{E}f\left(X\right)g\left(Y\right)=\mathbb{E}f\left(X\right)\mathbb{E}g\left(Y\right)=P\left(X\in A\right)P\left(Y\in B\right)$$
If conversely $X,Y$ are independent then so are $f\left(X\right)$ and $g\left(Y\right)$ for arbitrary Borel measurable functions.
This because: $$P\left(f\left(X\right)\in U,g\left(Y\right)\in V\right)=P\left(X\in f^{-1}\left(U\right),Y\in g^{-1}\left(V\right)\right)=$$$$P\left(X\in f^{-1}\left(U\right)\right)P\left(Y\in g^{-1}\left(V\right)\right)=P\left(f\left(X\right)\in U\right)P\left(g\left(Y\right)\in V\right)$$ for arbitrary Borel sets $U,V$.
If in that case moreover the functions $f$ and $g$ are bounded, so that the expectations of $f\left(X\right),g\left(Y\right)$ and $f\left(X\right)g\left(Y\right)$ exist then:$$\mathbb{E}\left[f\left(X\right)g\left(Y\right)\right]=\mathbb{E}f\left(X\right)\mathbb{E}g\left(Y\right)$$