coro = loop.create_connection(lambda : ClientProtocol(loop), '127.0.0.1', port)
task = asyncio.Task(coro)
transport, protocol = loop.run_until_complete(coro)
Python asyncio: yield from wasn't used with future?