As suggested in https://github.com/fonttools/fonttools/pull/706#commitcomment-19429339
from fontTools import version
WOFFDirectoryEntry.zlibCompressionLevel
ZLIB_COMPRESSION_LEVEL