tornado example redirect in separate method