<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def request_finished(key):
 """ Remove finished Thread from queue. :param key: data source key """

    with event_lock:
        threads[key] = threads[key][1:]

        if threads[key]:
            threads[key][0].run()