human
Give me a the Python code you requested given the following:
I am working on the file "1_demo.ipynb".
The first task is:
Original order matters
... go eat yourself.
Can you write Python code for it?
assistant
#Here is the Python code you requested.

@asyncio.coroutine
def quote_many(num_quotes=1, conn_limit=20, progress=None, step=10):
    if progress is None:
        progress = widgets.IntProgress()
        progress.max = num_quotes // step
        ipydisplay(progress)

    # create the lock
    semaphore = asyncio.Semaphore(conn_limit)

    finished_task_count = 0
    def progress_adder(fut):
        nonlocal finished_task_count
        finished_task_count += 1
        if finished_task_count % step == 0:
            progress.value += 1
    
    # wrap coroutines as Tasks
    futures = []
    for i in range(num_quotes):
        task = asyncio.Task(quote_with_lock(semaphore))
        task.add_done_callback(progress_adder)
        futures.append(task)
    
    quotes = yield from (asyncio.gather(*futures))
    return quotes

%%time
quotes = loop.run_until_complete(quote_many(2000, conn_limit=100, step=1))

%%time
quotes = loop.run_until_complete(quote_many(2000, conn_limit=100, step=20))