Apply list to collection to handle Python3 issue where collection.values() doesn't return list which is needed by random.shuffle().