[Python-checkins] cpython: asyncio: Refactor drain logic in streams.py to be reusable.