def fetchURL(url, loop): async with aiohttp.ClientSession(loop=loop) as session: with aiohttp.Timeout(10, loop=session.loop): async with session.get(url) as response: return await response.text()