Created a list_topics function to list topics in the stdout