import asyncio print('foo') await asyncio.sleep(1) print('bar')