def get_results_from_queue(queue):
    """Get the result form the provided multiprocessing queue object """
    result_list = []
    for _ in range(queue.qsize()):
        # print type(queue), queue.qsize()
        result_list.append(queue.get())
    return result_list