Update to top_topics.py to produce optional histogram output