You're not opening the file like you think you are.
Instead of your current file_text = open(...
, Use the following for best results:
with open(log_file, 'r', encoding='utf8') as f:
file_text = f.readlines()
* Be the first to Make Comment