On the analytic continuation of functions which map the upper half plane into itself