def get_topics(yaml_info):
    """ Returns the names of all of the topics in the bag, and prints them
        to stdout if requested
    """
    names = []
    topics = yaml_info['topics']
    for topic in topics:
        names.append(topic['topic'])
    return names
