check if max_lines is inf
move file_exists from phrase_extract.py to utils.py. in phrase_extract: replace specific write defs with general freqs/probs_to_file