Restructure to use asynchronous requests with tornado