Lettercount.py working with twain.txt file