Misc asyncio improvements from upstream
8 files changed