allow extracting lowercase text with TextExtractor
refactor
python script grid_search runner