python: Fix NameError if asyncio is not available