First version of preprocess.py. Replaces rare words with common symbol.