pep8 fix and safer openpyxl version check