thanks for all your help so far.
your trimmer doesn't seem to work for me?
File "trimmer.py", line 37, in <module>
for row in reader:
UnicodeDecodeError: 'cp932' codec can't decode byte 0x93 in position 49: illegal multibyte sequence
I added UTF-8 and it completed returning "98" (193 line...