Fix for tornado redirect function, was not properly returning.