I am having trouble figuring out the following question (3.10 in Kechris, Classical Descriptive Set Theory): If $X$ is completely metrizable, and $A\subseteq X$ with $f:A\to A$ a homeomorphism, then there is a $G_\delta$ set $G\subseteq X$ containing $A$ and an extension $h:G\to G$ of $f$ which is a homeomorphism of $G$.
Lavrentiev's Theorem gets us $G_\delta$ sets $G'$ and $H'$ containing $A$, and a homeomophism $g:G'\to H'$ extending $f$, but it doesn't seem to me that the proof of that result can be easily adapted to make $G'=H'$. The key fact in all of this is the set $\bar{A}\cap\{x:\mathrm{osc}_f(x)=0\}$, for any continuous $f:A\to X$, is a $G_\delta$ set in $X$ on which we can continuously extend $f$.