async def init(loop):
    app = web.Application(loop=loop)
    app.router.add_route('GET', '/', index)
    srv = (await loop.create_server(app.make_handler(), '127.0.0.1', 5000))
    logging.info('server is listening at http://127.0.0.1:5000')
    return srv
async def init(loop):
    app = web.Application(loop=loop)
    app.router.add_route('GET', '/', index)
    srv = (await loop.create_server(app.make_handler(), '127.0.0.1', 5000))
    logging.info('server is listening at http://127.0.0.1:5000')
    return srv