added an optimization for openpyxl so python stops dying