started prototyping text mining in python (to be replaced by faster program in c/c++ at some point)