'Organizes Queue list.
Return a list of Queues that have been organized into a hierarchy
based on dependencies'

def build_queue(self, push_queue):

    self.build_image_list()
    self.find_parents()
    self.filter_images()
    queue = six.moves.queue.Queue()
    for image in self.images:
        if (image.status == STATUS_UNMATCHED):
            continue
        if (image.parent is None):
            queue.put(BuildTask(self.conf, image, push_queue))
            LOG.info('Added    image    %s    to    queue', image.name)
    return queue
