def get_thread_output(que_object, threads_list):
    """
    Helper function which retrieves output from multiple threads.

    Positional arguments:
    - que_object -- Queue object in which all output threads are based
    - threads_list -- list with all Thread objects

    Returns:
    - thread_outputs -- list of thread outputs
    """
    thread_outputs = list()
    for thread in threads_list:
        thread.join()

    while not que_object.empty():
        result = que_object.get()
        thread_outputs.append(result)
    return thread_outputs