python script for reshaping mallet's topic-document output