asyncio: pyflakes, remove unused import

tests: Remove unused function; inline another function
3 files changed