Python mock HTTP server based on tornado