I/O operations with subprocess not closing files
Eventually execution throws ResourceWarnings due to stdout redirection to file made by outer module.
A simple example that shows this behavior is builders.WordBoxBuilder()
inside an unit test.
Checking tesseract.py, at line 443 a read operation is made but with no close foward operation, because it is a stdout operation. To avoid this behavior stdout should by first redirect to a temp file, then data read from this file, allowing to open, read and close file.